@seamapi/types 1.918.0 → 1.920.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 (37) hide show
  1. package/dist/connect.cjs +592 -184
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +210 -4
  4. package/dist/index.cjs +592 -184
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-codes/managed-access-code.js +78 -44
  7. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  8. package/lib/seam/connect/models/acs/acs-access-group.js +7 -4
  9. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  10. package/lib/seam/connect/models/acs/acs-encoder.js +7 -3
  11. package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-system.js +58 -31
  13. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  14. package/lib/seam/connect/models/acs/acs-users/acs-user.js +42 -24
  15. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  16. package/lib/seam/connect/models/connected-accounts/connected-account.js +29 -19
  17. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  18. package/lib/seam/connect/models/devices/device.js +51 -27
  19. package/lib/seam/connect/models/devices/device.js.map +1 -1
  20. package/lib/seam/connect/models/events/access-codes.d.ts +118 -0
  21. package/lib/seam/connect/models/events/access-codes.js +34 -0
  22. package/lib/seam/connect/models/events/access-codes.js.map +1 -1
  23. package/lib/seam/connect/models/events/seam-event.d.ts +59 -1
  24. package/lib/seam/connect/openapi.js +230 -3
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +152 -4
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +136 -114
  29. package/src/lib/seam/connect/models/acs/acs-access-group.ts +10 -9
  30. package/src/lib/seam/connect/models/acs/acs-encoder.ts +7 -5
  31. package/src/lib/seam/connect/models/acs/acs-system.ts +73 -56
  32. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +48 -40
  33. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +78 -73
  34. package/src/lib/seam/connect/models/devices/device.ts +70 -46
  35. package/src/lib/seam/connect/models/events/access-codes.ts +48 -0
  36. package/src/lib/seam/connect/openapi.ts +239 -3
  37. package/src/lib/seam/connect/route-types.ts +212 -0
package/dist/connect.cjs CHANGED
@@ -592,12 +592,20 @@ var common_connected_account_warning = zod.z.object({
592
592
  });
593
593
  var account_disconnected = common_connected_account_error.extend({
594
594
  error_code: zod.z.literal("account_disconnected").describe(error_code_description)
595
- }).describe("Indicates that the account is disconnected.");
595
+ }).describe(`
596
+ ---
597
+ resource_type: connected_account
598
+ ---
599
+ Indicates that the account is disconnected.
600
+ `);
596
601
  var bridge_disconnected = common_connected_account_error.extend({
597
602
  error_code: zod.z.literal("bridge_disconnected").describe(error_code_description)
598
- }).describe(
599
- "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected)."
600
- );
603
+ }).describe(`
604
+ ---
605
+ resource_type: connected_account
606
+ ---
607
+ Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).
608
+ `);
601
609
  var salto_ks_subscription_limit_exceeded = common_connected_account_error.extend({
602
610
  error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description),
603
611
  salto_ks_metadata: zod.z.object({
@@ -624,14 +632,20 @@ var salto_ks_subscription_limit_exceeded = common_connected_account_error.extend
624
632
  }).describe(
625
633
  "Salto KS metadata associated with the connected account that has an error."
626
634
  )
627
- }).describe(
628
- "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit."
629
- );
635
+ }).describe(`
636
+ ---
637
+ resource_type: connected_account
638
+ ---
639
+ Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.
640
+ `);
630
641
  var dormakaba_sites_disconnected = common_connected_account_error.extend({
631
642
  error_code: zod.z.literal("dormakaba_sites_disconnected").describe(error_code_description)
632
- }).describe(
633
- "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support."
634
- );
643
+ }).describe(`
644
+ ---
645
+ resource_type: connected_account
646
+ ---
647
+ Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
648
+ `);
635
649
  var connected_account_error = zod.z.discriminatedUnion("error_code", [
636
650
  account_disconnected,
637
651
  bridge_disconnected,
@@ -1358,6 +1372,7 @@ var device_offline = common_device_error.extend({
1358
1372
  }).describe(
1359
1373
  `
1360
1374
  ---
1375
+ resource_type: device
1361
1376
  deprecated: Use \`device_disconnected\` instead.
1362
1377
  ---
1363
1378
  Indicates that the device is offline.
@@ -1365,24 +1380,45 @@ var device_offline = common_device_error.extend({
1365
1380
  );
1366
1381
  var device_removed = common_device_error.extend({
1367
1382
  error_code: zod.z.literal("device_removed").describe(error_code_description2)
1368
- }).describe("Indicates that the device has been removed.");
1383
+ }).describe(`
1384
+ ---
1385
+ resource_type: device
1386
+ ---
1387
+ Indicates that the device has been removed.
1388
+ `);
1369
1389
  var hub_disconnected = common_device_error.extend({
1370
1390
  error_code: zod.z.literal("hub_disconnected").describe(error_code_description2)
1371
- }).describe("Indicates that the hub is disconnected.");
1391
+ }).describe(`
1392
+ ---
1393
+ resource_type: device
1394
+ ---
1395
+ Indicates that the hub is disconnected.
1396
+ `);
1372
1397
  var device_disconnected = common_device_error.extend({
1373
1398
  error_code: zod.z.literal("device_disconnected").describe(error_code_description2)
1374
- }).describe("Indicates that the device is disconnected.");
1399
+ }).describe(`
1400
+ ---
1401
+ resource_type: device
1402
+ ---
1403
+ Indicates that the device is disconnected.
1404
+ `);
1375
1405
  var account_disconnected2 = common_device_error.extend({
1376
1406
  error_code: zod.z.literal("account_disconnected").describe(error_code_description2),
1377
1407
  is_connected_account_error: zod.z.literal(true).describe(
1378
1408
  "Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error."
1379
1409
  ),
1380
1410
  is_device_error: zod.z.literal(false).describe("Indicates that the error is not a device error.")
1381
- }).describe("Indicates that the account is disconnected.");
1411
+ }).describe(`
1412
+ ---
1413
+ resource_type: connected_account
1414
+ ---
1415
+ Indicates that the account is disconnected.
1416
+ `);
1382
1417
  var empty_backup_access_code_pool = common_device_error.extend({
1383
1418
  error_code: zod.z.literal("empty_backup_access_code_pool").describe(error_code_description2)
1384
1419
  }).describe(`
1385
1420
  ---
1421
+ resource_type: device
1386
1422
  variant_group_key: access_codes
1387
1423
  ---
1388
1424
  Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.
@@ -1391,6 +1427,7 @@ var august_lock_not_authorized = common_device_error.extend({
1391
1427
  error_code: zod.z.literal("august_lock_not_authorized").describe(error_code_description2)
1392
1428
  }).describe(`
1393
1429
  ---
1430
+ resource_type: device
1394
1431
  variant_group_key: locks
1395
1432
  ---
1396
1433
  Indicates that the user is not authorized to use the August lock.
@@ -1399,6 +1436,7 @@ var august_lock_missing_bridge = common_device_error.extend({
1399
1436
  error_code: zod.z.literal("august_lock_missing_bridge").describe(error_code_description2)
1400
1437
  }).describe(`
1401
1438
  ---
1439
+ resource_type: device
1402
1440
  deprecated: Use \`hub_disconnected\` instead.
1403
1441
  variant_group_key: locks
1404
1442
  ---
@@ -1412,6 +1450,7 @@ var salto_ks_subscription_limit_exceeded2 = common_device_error.extend({
1412
1450
  is_device_error: zod.z.literal(false).describe("Indicates that the error is not a device error.")
1413
1451
  }).describe(`
1414
1452
  ---
1453
+ resource_type: connected_account
1415
1454
  variant_group_key: locks
1416
1455
  ---
1417
1456
  Indicates that the Salto site user limit has been reached.
@@ -1420,28 +1459,41 @@ var ttlock_lock_not_paired_to_gateway = common_device_error.extend({
1420
1459
  error_code: zod.z.literal("ttlock_lock_not_paired_to_gateway").describe(error_code_description2)
1421
1460
  }).describe(`
1422
1461
  ---
1462
+ resource_type: device
1423
1463
  deprecated: Use \`hub_disconnected\` instead.
1424
1464
  ---
1425
1465
  Indicates that the lock is not paired with a gateway.
1426
1466
  `);
1427
1467
  var missing_device_credentials = common_device_error.extend({
1428
1468
  error_code: zod.z.literal("missing_device_credentials").describe(error_code_description2)
1429
- }).describe("Indicates that device credentials are missing.");
1469
+ }).describe(`
1470
+ ---
1471
+ resource_type: device
1472
+ ---
1473
+ Indicates that device credentials are missing.
1474
+ `);
1430
1475
  var auxiliary_heat_running = common_device_error.extend({
1431
1476
  error_code: zod.z.literal("auxiliary_heat_running").describe(error_code_description2)
1432
1477
  }).describe(`
1433
1478
  ---
1479
+ resource_type: device
1434
1480
  variant_group_key: thermostats
1435
1481
  ---
1436
1482
  Indicates that the auxiliary heat is running.
1437
1483
  `);
1438
1484
  var subscription_required = common_device_error.extend({
1439
1485
  error_code: zod.z.literal("subscription_required").describe(error_code_description2)
1440
- }).describe("Indicates that a subscription is required to connect.");
1486
+ }).describe(`
1487
+ ---
1488
+ resource_type: device
1489
+ ---
1490
+ Indicates that a subscription is required to connect.
1491
+ `);
1441
1492
  var lockly_missing_wifi_bridge = common_device_error.extend({
1442
1493
  error_code: zod.z.literal("lockly_missing_wifi_bridge").describe(error_code_description2)
1443
1494
  }).describe(`
1444
1495
  ---
1496
+ resource_type: device
1445
1497
  deprecated: Use \`hub_disconnected\` instead.
1446
1498
  ---
1447
1499
  Indicates that the Lockly lock is not connected to a Wi-Fi bridge.
@@ -2384,9 +2436,12 @@ var common_access_code_error = zod.z.object({
2384
2436
  var error_code_description3 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
2385
2437
  var provider_issue2 = common_access_code_error.extend({
2386
2438
  error_code: zod.z.literal("provider_issue").describe(error_code_description3)
2387
- }).describe(
2388
- "Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details."
2389
- );
2439
+ }).describe(`
2440
+ ---
2441
+ resource_type: access_code
2442
+ ---
2443
+ Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.
2444
+ `);
2390
2445
  var modified_field = zod.z.object({
2391
2446
  field: zod.z.string().describe(
2392
2447
  "The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`)."
@@ -2402,15 +2457,28 @@ var code_modified_external_to_seam_error = common_access_code_error.extend({
2402
2457
  modified_fields: zod.z.array(modified_field).optional().describe(
2403
2458
  "List of fields that were changed externally, with their previous and new values."
2404
2459
  )
2405
- }).describe(
2406
- "Code was modified or removed externally after Seam successfully set it on the device."
2407
- );
2460
+ }).describe(`
2461
+ ---
2462
+ resource_type: access_code
2463
+ ---
2464
+ Code was modified or removed externally after Seam successfully set it on the device.
2465
+ `);
2408
2466
  var failed_to_set_on_device = common_access_code_error.extend({
2409
2467
  error_code: zod.z.literal("failed_to_set_on_device").describe(error_code_description3)
2410
- }).describe("Failed to set code on device.");
2468
+ }).describe(`
2469
+ ---
2470
+ resource_type: access_code
2471
+ ---
2472
+ Failed to set code on device.
2473
+ `);
2411
2474
  var failed_to_remove_from_device = common_access_code_error.extend({
2412
2475
  error_code: zod.z.literal("failed_to_remove_from_device").describe(error_code_description3)
2413
- }).describe("Failed to remove code from device.");
2476
+ }).describe(`
2477
+ ---
2478
+ resource_type: access_code
2479
+ ---
2480
+ Failed to remove code from device.
2481
+ `);
2414
2482
  var duplicate_code_on_device = common_access_code_error.extend({
2415
2483
  error_code: zod.z.literal("duplicate_code_on_device").describe(error_code_description3),
2416
2484
  unmanaged_access_code_id: zod.z.string().uuid().optional().describe(
@@ -2419,33 +2487,58 @@ var duplicate_code_on_device = common_access_code_error.extend({
2419
2487
  managed_access_code_id: zod.z.string().uuid().optional().describe(
2420
2488
  "ID of the managed access code that conflicts with this managed access code, when Seam can identify it."
2421
2489
  )
2422
- }).describe("Duplicate access code detected on device.");
2490
+ }).describe(`
2491
+ ---
2492
+ resource_type: access_code
2493
+ ---
2494
+ Duplicate access code detected on device.
2495
+ `);
2423
2496
  var duplicate_code_attempt_prevented = common_access_code_error.extend({
2424
2497
  error_code: zod.z.literal("duplicate_code_attempt_prevented").describe(error_code_description3)
2425
- }).describe("An attempt to modify this access code was prevented.");
2498
+ }).describe(`
2499
+ ---
2500
+ resource_type: access_code
2501
+ ---
2502
+ An attempt to modify this access code was prevented.
2503
+ `);
2426
2504
  var no_space_for_access_code_on_device = common_access_code_error.extend({
2427
2505
  error_code: zod.z.literal("no_space_for_access_code_on_device").describe(error_code_description3)
2428
- }).describe("No space for access code on device.");
2506
+ }).describe(`
2507
+ ---
2508
+ resource_type: access_code
2509
+ ---
2510
+ No space for access code on device.
2511
+ `);
2429
2512
  var access_code_state_unconfirmed = common_access_code_error.extend({
2430
2513
  error_code: zod.z.literal("access_code_state_unconfirmed").describe(error_code_description3)
2431
- }).describe(
2432
- "Indicates that the provider cannot confirm whether the access code was set or removed on the device."
2433
- );
2514
+ }).describe(`
2515
+ ---
2516
+ resource_type: access_code
2517
+ ---
2518
+ Indicates that the provider cannot confirm whether the access code was set or removed on the device.
2519
+ `);
2434
2520
  var insufficient_permissions2 = common_access_code_error.extend({
2435
2521
  error_code: zod.z.literal("insufficient_permissions").describe(error_code_description3)
2436
- }).describe(
2437
- "Admin role required\u2014insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN."
2438
- );
2522
+ }).describe(`
2523
+ ---
2524
+ resource_type: access_code
2525
+ ---
2526
+ Admin role required\u2014insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.
2527
+ `);
2439
2528
  var access_code_inactive_error = common_access_code_error.extend({
2440
2529
  error_code: zod.z.literal("access_code_inactive").describe(error_code_description3)
2441
- }).describe(
2442
- "Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled."
2443
- );
2530
+ }).describe(`
2531
+ ---
2532
+ resource_type: access_code
2533
+ ---
2534
+ Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.
2535
+ `);
2444
2536
  var salto_ks_user_not_subscribed = common_access_code_error.extend({
2445
2537
  error_code: zod.z.literal("salto_ks_user_not_subscribed").describe(error_code_description3)
2446
2538
  }).describe(
2447
2539
  `
2448
2540
  ---
2541
+ resource_type: access_code
2449
2542
  deprecated: Use \`access_code_inactive\` instead.
2450
2543
  ---
2451
2544
  Salto site user is not subscribed.
@@ -2453,9 +2546,12 @@ var salto_ks_user_not_subscribed = common_access_code_error.extend({
2453
2546
  );
2454
2547
  var replaced_by_newer_access_code = common_access_code_error.extend({
2455
2548
  error_code: zod.z.literal("replaced_by_newer_access_code").describe(error_code_description3)
2456
- }).describe(
2457
- "This access code was overridden on the device by a newer access code programmed to the same slot."
2458
- );
2549
+ }).describe(`
2550
+ ---
2551
+ resource_type: access_code
2552
+ ---
2553
+ This access code was overridden on the device by a newer access code programmed to the same slot.
2554
+ `);
2459
2555
  var access_code_error = zod.z.discriminatedUnion("error_code", [
2460
2556
  provider_issue2,
2461
2557
  failed_to_set_on_device,
@@ -3297,9 +3393,12 @@ var common_acs_access_group_error = zod.z.object({
3297
3393
  var error_code_description5 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
3298
3394
  var acs_access_groups_failed_to_create_on_acs_system = common_acs_access_group_error.extend({
3299
3395
  error_code: zod.z.literal("failed_to_create_on_acs_system").describe(error_code_description5)
3300
- }).describe(
3301
- `Indicates that the [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`
3302
- );
3396
+ }).describe(`
3397
+ ---
3398
+ resource_type: acs_access_group
3399
+ ---
3400
+ Indicates that the [access group](https://docs.seam.co/low-level-apis/access-systems/user-management/assigning-users-to-access-groups) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
3401
+ `);
3303
3402
  var acs_access_group_errors = zod.z.discriminatedUnion("error_code", [
3304
3403
  acs_access_groups_failed_to_create_on_acs_system
3305
3404
  ]).describe("Error associated with the `acs_access_group`.");
@@ -3749,9 +3848,13 @@ var acs_encoder_removed = common_acs_encoder_error.extend({
3749
3848
  });
3750
3849
  var acs_encoder_error = (
3751
3850
  // z.union([
3752
- acs_encoder_removed.describe(
3753
- "Error associated with the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners)."
3754
- )
3851
+ // ])
3852
+ acs_encoder_removed.describe(`
3853
+ ---
3854
+ resource_type: acs_encoder
3855
+ ---
3856
+ Error associated with the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
3857
+ `)
3755
3858
  );
3756
3859
  zod.z.object({
3757
3860
  acs_encoder_removed: acs_encoder_removed.optional().nullable()
@@ -3975,46 +4078,76 @@ var error_code_description7 = "Unique identifier of the type of error. Enables q
3975
4078
  var warning_code_description9 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
3976
4079
  var seam_bridge_disconnected = common_acs_system_error.extend({
3977
4080
  error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description7)
3978
- }).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
3979
- This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/core-concepts/workspaces).
3980
- See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
4081
+ }).describe(`
4082
+ ---
4083
+ resource_type: acs_system
4084
+ ---
4085
+ Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
4086
+ This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/core-concepts/workspaces).
4087
+ See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).
4088
+ `);
3981
4089
  var bridge_disconnected2 = common_acs_system_error.extend({
3982
4090
  error_code: zod.z.literal("bridge_disconnected").describe(error_code_description7),
3983
4091
  is_bridge_error: zod.z.boolean().optional().describe(
3984
4092
  "Indicates whether the error is related to the [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge)."
3985
4093
  )
3986
- }).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
3987
- See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).`);
4094
+ }).describe(`
4095
+ ---
4096
+ resource_type: acs_system
4097
+ ---
4098
+ Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
4099
+ See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).
4100
+ `);
3988
4101
  var visionline_instance_unreachable = common_acs_system_error.extend({
3989
4102
  error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description7)
3990
- }).describe(`Indicates that [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
3991
- For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/core-concepts/workspaces).
3992
- See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`);
4103
+ }).describe(`
4104
+ ---
4105
+ resource_type: acs_system
4106
+ ---
4107
+ Indicates that [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
4108
+ For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/core-concepts/workspaces).
4109
+ See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).
4110
+ `);
3993
4111
  var salto_ks_subscription_limit_exceeded3 = common_acs_system_error.extend({
3994
4112
  error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description7)
3995
- }).describe(
3996
- "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit."
3997
- );
4113
+ }).describe(`
4114
+ ---
4115
+ resource_type: acs_system
4116
+ ---
4117
+ Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.
4118
+ `);
3998
4119
  var acs_system_disconnected = common_acs_system_error.extend({
3999
4120
  error_code: zod.z.literal("acs_system_disconnected").describe(error_code_description7)
4000
- }).describe(
4001
- "Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has been disconnected. See [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system) to resolve the issue."
4002
- );
4121
+ }).describe(`
4122
+ ---
4123
+ resource_type: acs_system
4124
+ ---
4125
+ Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has been disconnected. See [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system) to resolve the issue.
4126
+ `);
4003
4127
  var account_disconnected3 = common_acs_system_error.extend({
4004
4128
  error_code: zod.z.literal("account_disconnected").describe(error_code_description7)
4005
- }).describe(
4006
- "Indicates that the login credentials are invalid. Reconnect the account using a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) to restore access."
4007
- );
4129
+ }).describe(`
4130
+ ---
4131
+ resource_type: acs_system
4132
+ ---
4133
+ Indicates that the login credentials are invalid. Reconnect the account using a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) to restore access.
4134
+ `);
4008
4135
  var salto_ks_certification_expired = common_acs_system_error.extend({
4009
4136
  error_code: zod.z.literal("salto_ks_certification_expired").describe(error_code_description7)
4010
- }).describe(
4011
- "Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access."
4012
- );
4137
+ }).describe(`
4138
+ ---
4139
+ resource_type: acs_system
4140
+ ---
4141
+ Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access.
4142
+ `);
4013
4143
  var provider_service_unavailable2 = common_acs_system_error.extend({
4014
4144
  error_code: zod.z.literal("provider_service_unavailable").describe(error_code_description7)
4015
- }).describe(
4016
- "Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again."
4017
- );
4145
+ }).describe(`
4146
+ ---
4147
+ resource_type: acs_system
4148
+ ---
4149
+ Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.
4150
+ `);
4018
4151
  var acs_system_error = zod.z.discriminatedUnion("error_code", [
4019
4152
  seam_bridge_disconnected,
4020
4153
  bridge_disconnected2,
@@ -4342,34 +4475,52 @@ var common_acs_user_error = zod.z.object({
4342
4475
  });
4343
4476
  var acs_users_deleted_externally = common_acs_user_error.extend({
4344
4477
  error_code: zod.z.literal("deleted_externally")
4345
- }).describe(
4346
- `Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was deleted from the [access system](https://docs.seam.co/low-level-apis/access-systems) outside of Seam.`
4347
- );
4478
+ }).describe(`
4479
+ ---
4480
+ resource_type: acs_user
4481
+ ---
4482
+ Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was deleted from the [access system](https://docs.seam.co/low-level-apis/access-systems) outside of Seam.
4483
+ `);
4348
4484
  var acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error.extend({
4349
4485
  error_code: zod.z.literal("salto_ks_subscription_limit_exceeded")
4350
- }).describe(
4351
- `Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.`
4352
- );
4486
+ }).describe(`
4487
+ ---
4488
+ resource_type: acs_user
4489
+ ---
4490
+ Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.
4491
+ `);
4353
4492
  var acs_users_failed_to_create_on_acs_system = common_acs_user_error.extend({
4354
4493
  error_code: zod.z.literal("failed_to_create_on_acs_system")
4355
- }).describe(
4356
- `Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`
4357
- );
4494
+ }).describe(`
4495
+ ---
4496
+ resource_type: acs_user
4497
+ ---
4498
+ Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
4499
+ `);
4358
4500
  var acs_users_failed_to_update_on_acs_system = common_acs_user_error.extend({
4359
4501
  error_code: zod.z.literal("failed_to_update_on_acs_system")
4360
- }).describe(
4361
- `Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`
4362
- );
4502
+ }).describe(`
4503
+ ---
4504
+ resource_type: acs_user
4505
+ ---
4506
+ Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
4507
+ `);
4363
4508
  var acs_users_failed_to_delete_on_acs_system = common_acs_user_error.extend({
4364
4509
  error_code: zod.z.literal("failed_to_delete_on_acs_system")
4365
- }).describe(
4366
- `Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`
4367
- );
4510
+ }).describe(`
4511
+ ---
4512
+ resource_type: acs_user
4513
+ ---
4514
+ Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
4515
+ `);
4368
4516
  var acs_users_latch_conflict_with_resident_user = common_acs_user_error.extend({
4369
4517
  error_code: zod.z.literal("latch_conflict_with_resident_user")
4370
- }).describe(
4371
- `Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).`
4372
- );
4518
+ }).describe(`
4519
+ ---
4520
+ resource_type: acs_user
4521
+ ---
4522
+ Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).
4523
+ `);
4373
4524
  var acs_user_errors = zod.z.discriminatedUnion("error_code", [
4374
4525
  acs_users_deleted_externally,
4375
4526
  acs_users_salto_ks_subscription_limit_exceeded,
@@ -5472,6 +5623,35 @@ var access_code_time_frame_changed_event = access_code_event.extend({
5472
5623
  ---
5473
5624
  The time frame of an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was changed on the device.
5474
5625
  `);
5626
+ var requested_mutation = zod.z.object({
5627
+ mutation_code: zod.z.enum([
5628
+ "updating_name",
5629
+ "updating_code",
5630
+ "updating_time_frame",
5631
+ "deleting",
5632
+ "creating",
5633
+ "deferring_creation"
5634
+ ]).describe(
5635
+ "Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`."
5636
+ ),
5637
+ from: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe(
5638
+ "Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`."
5639
+ ),
5640
+ to: zod.z.record(zod.z.string(), zod.z.unknown()).optional().describe(
5641
+ "New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`."
5642
+ )
5643
+ }).describe("Record describing a single requested mutation.");
5644
+ var access_code_mutations_requested_event = access_code_event.extend({
5645
+ event_type: zod.z.literal("access_code.mutations_requested"),
5646
+ requested_mutations: zod.z.array(requested_mutation).describe(
5647
+ "Array of mutations requested on the access code, each containing the mutation type and from/to values."
5648
+ )
5649
+ }).describe(`
5650
+ ---
5651
+ route_path: /access_codes
5652
+ ---
5653
+ Mutations were requested on an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes). This event fires at request time, before the change is confirmed on the device.
5654
+ `);
5475
5655
  var access_code_scheduled_on_device_event = access_code_event.extend({
5476
5656
  event_type: zod.z.literal("access_code.scheduled_on_device"),
5477
5657
  code
@@ -5604,6 +5784,7 @@ var access_code_events = [
5604
5784
  access_code_name_changed_event,
5605
5785
  access_code_code_changed_event,
5606
5786
  access_code_time_frame_changed_event,
5787
+ access_code_mutations_requested_event,
5607
5788
  access_code_scheduled_on_device_event,
5608
5789
  access_code_set_on_device_event,
5609
5790
  access_code_removed_from_device_event,
@@ -7383,7 +7564,8 @@ var openapi = {
7383
7564
  }
7384
7565
  },
7385
7566
  required: ["message", "is_access_code_error", "error_code"],
7386
- type: "object"
7567
+ type: "object",
7568
+ "x-resource-type": "access_code"
7387
7569
  },
7388
7570
  {
7389
7571
  description: "Failed to set code on device.",
@@ -7409,7 +7591,8 @@ var openapi = {
7409
7591
  }
7410
7592
  },
7411
7593
  required: ["message", "is_access_code_error", "error_code"],
7412
- type: "object"
7594
+ type: "object",
7595
+ "x-resource-type": "access_code"
7413
7596
  },
7414
7597
  {
7415
7598
  description: "Failed to remove code from device.",
@@ -7435,7 +7618,8 @@ var openapi = {
7435
7618
  }
7436
7619
  },
7437
7620
  required: ["message", "is_access_code_error", "error_code"],
7438
- type: "object"
7621
+ type: "object",
7622
+ "x-resource-type": "access_code"
7439
7623
  },
7440
7624
  {
7441
7625
  description: "Duplicate access code detected on device.",
@@ -7471,7 +7655,8 @@ var openapi = {
7471
7655
  }
7472
7656
  },
7473
7657
  required: ["message", "is_access_code_error", "error_code"],
7474
- type: "object"
7658
+ type: "object",
7659
+ "x-resource-type": "access_code"
7475
7660
  },
7476
7661
  {
7477
7662
  description: "An attempt to modify this access code was prevented.",
@@ -7497,7 +7682,8 @@ var openapi = {
7497
7682
  }
7498
7683
  },
7499
7684
  required: ["message", "is_access_code_error", "error_code"],
7500
- type: "object"
7685
+ type: "object",
7686
+ "x-resource-type": "access_code"
7501
7687
  },
7502
7688
  {
7503
7689
  description: "No space for access code on device.",
@@ -7523,7 +7709,8 @@ var openapi = {
7523
7709
  }
7524
7710
  },
7525
7711
  required: ["message", "is_access_code_error", "error_code"],
7526
- type: "object"
7712
+ type: "object",
7713
+ "x-resource-type": "access_code"
7527
7714
  },
7528
7715
  {
7529
7716
  description: "Indicates that the provider cannot confirm whether the access code was set or removed on the device.",
@@ -7549,7 +7736,8 @@ var openapi = {
7549
7736
  }
7550
7737
  },
7551
7738
  required: ["message", "is_access_code_error", "error_code"],
7552
- type: "object"
7739
+ type: "object",
7740
+ "x-resource-type": "access_code"
7553
7741
  },
7554
7742
  {
7555
7743
  description: "Code was modified or removed externally after Seam successfully set it on the device.",
@@ -7604,7 +7792,8 @@ var openapi = {
7604
7792
  }
7605
7793
  },
7606
7794
  required: ["message", "is_access_code_error", "error_code"],
7607
- type: "object"
7795
+ type: "object",
7796
+ "x-resource-type": "access_code"
7608
7797
  },
7609
7798
  {
7610
7799
  description: "Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.",
@@ -7630,7 +7819,8 @@ var openapi = {
7630
7819
  }
7631
7820
  },
7632
7821
  required: ["message", "is_access_code_error", "error_code"],
7633
- type: "object"
7822
+ type: "object",
7823
+ "x-resource-type": "access_code"
7634
7824
  },
7635
7825
  {
7636
7826
  deprecated: true,
@@ -7658,7 +7848,8 @@ var openapi = {
7658
7848
  },
7659
7849
  required: ["message", "is_access_code_error", "error_code"],
7660
7850
  type: "object",
7661
- "x-deprecated": "Use `access_code_inactive` instead."
7851
+ "x-deprecated": "Use `access_code_inactive` instead.",
7852
+ "x-resource-type": "access_code"
7662
7853
  },
7663
7854
  {
7664
7855
  description: "Admin role required\u2014insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.",
@@ -7684,7 +7875,8 @@ var openapi = {
7684
7875
  }
7685
7876
  },
7686
7877
  required: ["message", "is_access_code_error", "error_code"],
7687
- type: "object"
7878
+ type: "object",
7879
+ "x-resource-type": "access_code"
7688
7880
  },
7689
7881
  {
7690
7882
  description: "This access code was overridden on the device by a newer access code programmed to the same slot.",
@@ -7710,7 +7902,8 @@ var openapi = {
7710
7902
  }
7711
7903
  },
7712
7904
  required: ["message", "is_access_code_error", "error_code"],
7713
- type: "object"
7905
+ type: "object",
7906
+ "x-resource-type": "access_code"
7714
7907
  },
7715
7908
  {
7716
7909
  description: "Indicates that the account is disconnected.",
@@ -7747,7 +7940,8 @@ var openapi = {
7747
7940
  "error_code",
7748
7941
  "is_connected_account_error"
7749
7942
  ],
7750
- type: "object"
7943
+ type: "object",
7944
+ "x-resource-type": "connected_account"
7751
7945
  },
7752
7946
  {
7753
7947
  description: "Indicates that the Salto site user limit has been reached.",
@@ -7785,6 +7979,7 @@ var openapi = {
7785
7979
  "is_connected_account_error"
7786
7980
  ],
7787
7981
  type: "object",
7982
+ "x-resource-type": "connected_account",
7788
7983
  "x-variant-group-key": "locks"
7789
7984
  },
7790
7985
  {
@@ -7818,7 +8013,8 @@ var openapi = {
7818
8013
  "error_code"
7819
8014
  ],
7820
8015
  type: "object",
7821
- "x-deprecated": "Use `device_disconnected` instead."
8016
+ "x-deprecated": "Use `device_disconnected` instead.",
8017
+ "x-resource-type": "device"
7822
8018
  },
7823
8019
  {
7824
8020
  description: "Indicates that the device has been removed.",
@@ -7849,7 +8045,8 @@ var openapi = {
7849
8045
  "created_at",
7850
8046
  "error_code"
7851
8047
  ],
7852
- type: "object"
8048
+ type: "object",
8049
+ "x-resource-type": "device"
7853
8050
  },
7854
8051
  {
7855
8052
  description: "Indicates that the hub is disconnected.",
@@ -7880,7 +8077,8 @@ var openapi = {
7880
8077
  "created_at",
7881
8078
  "error_code"
7882
8079
  ],
7883
- type: "object"
8080
+ type: "object",
8081
+ "x-resource-type": "device"
7884
8082
  },
7885
8083
  {
7886
8084
  description: "Indicates that the device is disconnected.",
@@ -7911,7 +8109,8 @@ var openapi = {
7911
8109
  "created_at",
7912
8110
  "error_code"
7913
8111
  ],
7914
- type: "object"
8112
+ type: "object",
8113
+ "x-resource-type": "device"
7915
8114
  },
7916
8115
  {
7917
8116
  description: "Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.",
@@ -7943,6 +8142,7 @@ var openapi = {
7943
8142
  "error_code"
7944
8143
  ],
7945
8144
  type: "object",
8145
+ "x-resource-type": "device",
7946
8146
  "x-variant-group-key": "access_codes"
7947
8147
  },
7948
8148
  {
@@ -7975,6 +8175,7 @@ var openapi = {
7975
8175
  "error_code"
7976
8176
  ],
7977
8177
  type: "object",
8178
+ "x-resource-type": "device",
7978
8179
  "x-variant-group-key": "locks"
7979
8180
  },
7980
8181
  {
@@ -8009,6 +8210,7 @@ var openapi = {
8009
8210
  ],
8010
8211
  type: "object",
8011
8212
  "x-deprecated": "Use `hub_disconnected` instead.",
8213
+ "x-resource-type": "device",
8012
8214
  "x-variant-group-key": "locks"
8013
8215
  },
8014
8216
  {
@@ -8042,7 +8244,8 @@ var openapi = {
8042
8244
  "error_code"
8043
8245
  ],
8044
8246
  type: "object",
8045
- "x-deprecated": "Use `hub_disconnected` instead."
8247
+ "x-deprecated": "Use `hub_disconnected` instead.",
8248
+ "x-resource-type": "device"
8046
8249
  },
8047
8250
  {
8048
8251
  description: "Indicates that device credentials are missing.",
@@ -8073,7 +8276,8 @@ var openapi = {
8073
8276
  "created_at",
8074
8277
  "error_code"
8075
8278
  ],
8076
- type: "object"
8279
+ type: "object",
8280
+ "x-resource-type": "device"
8077
8281
  },
8078
8282
  {
8079
8283
  description: "Indicates that the auxiliary heat is running.",
@@ -8105,6 +8309,7 @@ var openapi = {
8105
8309
  "error_code"
8106
8310
  ],
8107
8311
  type: "object",
8312
+ "x-resource-type": "device",
8108
8313
  "x-variant-group-key": "thermostats"
8109
8314
  },
8110
8315
  {
@@ -8136,7 +8341,8 @@ var openapi = {
8136
8341
  "created_at",
8137
8342
  "error_code"
8138
8343
  ],
8139
- type: "object"
8344
+ type: "object",
8345
+ "x-resource-type": "device"
8140
8346
  },
8141
8347
  {
8142
8348
  deprecated: true,
@@ -8169,7 +8375,8 @@ var openapi = {
8169
8375
  "error_code"
8170
8376
  ],
8171
8377
  type: "object",
8172
- "x-deprecated": "Use `hub_disconnected` instead."
8378
+ "x-deprecated": "Use `hub_disconnected` instead.",
8379
+ "x-resource-type": "device"
8173
8380
  },
8174
8381
  {
8175
8382
  description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
@@ -8198,7 +8405,8 @@ var openapi = {
8198
8405
  }
8199
8406
  },
8200
8407
  required: ["created_at", "message", "error_code"],
8201
- type: "object"
8408
+ type: "object",
8409
+ "x-resource-type": "connected_account"
8202
8410
  },
8203
8411
  {
8204
8412
  description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
@@ -8227,7 +8435,8 @@ var openapi = {
8227
8435
  }
8228
8436
  },
8229
8437
  required: ["created_at", "message", "error_code"],
8230
- type: "object"
8438
+ type: "object",
8439
+ "x-resource-type": "connected_account"
8231
8440
  }
8232
8441
  ]
8233
8442
  },
@@ -9872,7 +10081,8 @@ var openapi = {
9872
10081
  }
9873
10082
  },
9874
10083
  required: ["created_at", "message", "error_code"],
9875
- type: "object"
10084
+ type: "object",
10085
+ "x-resource-type": "acs_access_group"
9876
10086
  }
9877
10087
  ]
9878
10088
  },
@@ -10776,7 +10986,8 @@ var openapi = {
10776
10986
  }
10777
10987
  },
10778
10988
  required: ["created_at", "message", "error_code"],
10779
- type: "object"
10989
+ type: "object",
10990
+ "x-resource-type": "acs_encoder"
10780
10991
  },
10781
10992
  type: "array"
10782
10993
  },
@@ -11309,7 +11520,7 @@ var openapi = {
11309
11520
  discriminator: { propertyName: "error_code" },
11310
11521
  oneOf: [
11311
11522
  {
11312
- description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/core-concepts/workspaces).\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
11523
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\nThis error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/core-concepts/workspaces).\nSee also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
11313
11524
  properties: {
11314
11525
  created_at: {
11315
11526
  description: "Date and time at which Seam created the error.",
@@ -11327,10 +11538,11 @@ var openapi = {
11327
11538
  }
11328
11539
  },
11329
11540
  required: ["created_at", "message", "error_code"],
11330
- type: "object"
11541
+ type: "object",
11542
+ "x-resource-type": "acs_system"
11331
11543
  },
11332
11544
  {
11333
- description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
11545
+ description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\nSee also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
11334
11546
  properties: {
11335
11547
  created_at: {
11336
11548
  description: "Date and time at which Seam created the error.",
@@ -11352,10 +11564,11 @@ var openapi = {
11352
11564
  }
11353
11565
  },
11354
11566
  required: ["created_at", "message", "error_code"],
11355
- type: "object"
11567
+ type: "object",
11568
+ "x-resource-type": "acs_system"
11356
11569
  },
11357
11570
  {
11358
- description: "Indicates that [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).\n For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/core-concepts/workspaces).\n See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).",
11571
+ description: "Indicates that [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).\nFor example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/core-concepts/workspaces).\nSee also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).",
11359
11572
  properties: {
11360
11573
  created_at: {
11361
11574
  description: "Date and time at which Seam created the error.",
@@ -11373,7 +11586,8 @@ var openapi = {
11373
11586
  }
11374
11587
  },
11375
11588
  required: ["created_at", "message", "error_code"],
11376
- type: "object"
11589
+ type: "object",
11590
+ "x-resource-type": "acs_system"
11377
11591
  },
11378
11592
  {
11379
11593
  description: "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.",
@@ -11394,7 +11608,8 @@ var openapi = {
11394
11608
  }
11395
11609
  },
11396
11610
  required: ["created_at", "message", "error_code"],
11397
- type: "object"
11611
+ type: "object",
11612
+ "x-resource-type": "acs_system"
11398
11613
  },
11399
11614
  {
11400
11615
  description: "Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has been disconnected. See [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system) to resolve the issue.",
@@ -11415,7 +11630,8 @@ var openapi = {
11415
11630
  }
11416
11631
  },
11417
11632
  required: ["created_at", "message", "error_code"],
11418
- type: "object"
11633
+ type: "object",
11634
+ "x-resource-type": "acs_system"
11419
11635
  },
11420
11636
  {
11421
11637
  description: "Indicates that the login credentials are invalid. Reconnect the account using a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) to restore access.",
@@ -11436,7 +11652,8 @@ var openapi = {
11436
11652
  }
11437
11653
  },
11438
11654
  required: ["created_at", "message", "error_code"],
11439
- type: "object"
11655
+ type: "object",
11656
+ "x-resource-type": "acs_system"
11440
11657
  },
11441
11658
  {
11442
11659
  description: "Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access.",
@@ -11457,7 +11674,8 @@ var openapi = {
11457
11674
  }
11458
11675
  },
11459
11676
  required: ["created_at", "message", "error_code"],
11460
- type: "object"
11677
+ type: "object",
11678
+ "x-resource-type": "acs_system"
11461
11679
  },
11462
11680
  {
11463
11681
  description: "Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.",
@@ -11478,7 +11696,8 @@ var openapi = {
11478
11696
  }
11479
11697
  },
11480
11698
  required: ["created_at", "message", "error_code"],
11481
- type: "object"
11699
+ type: "object",
11700
+ "x-resource-type": "acs_system"
11482
11701
  }
11483
11702
  ]
11484
11703
  },
@@ -11765,7 +11984,8 @@ var openapi = {
11765
11984
  }
11766
11985
  },
11767
11986
  required: ["created_at", "message", "error_code"],
11768
- type: "object"
11987
+ type: "object",
11988
+ "x-resource-type": "acs_user"
11769
11989
  },
11770
11990
  {
11771
11991
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.",
@@ -11785,7 +12005,8 @@ var openapi = {
11785
12005
  }
11786
12006
  },
11787
12007
  required: ["created_at", "message", "error_code"],
11788
- type: "object"
12008
+ type: "object",
12009
+ "x-resource-type": "acs_user"
11789
12010
  },
11790
12011
  {
11791
12012
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).",
@@ -11805,7 +12026,8 @@ var openapi = {
11805
12026
  }
11806
12027
  },
11807
12028
  required: ["created_at", "message", "error_code"],
11808
- type: "object"
12029
+ type: "object",
12030
+ "x-resource-type": "acs_user"
11809
12031
  },
11810
12032
  {
11811
12033
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).",
@@ -11825,7 +12047,8 @@ var openapi = {
11825
12047
  }
11826
12048
  },
11827
12049
  required: ["created_at", "message", "error_code"],
11828
- type: "object"
12050
+ type: "object",
12051
+ "x-resource-type": "acs_user"
11829
12052
  },
11830
12053
  {
11831
12054
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).",
@@ -11845,7 +12068,8 @@ var openapi = {
11845
12068
  }
11846
12069
  },
11847
12070
  required: ["created_at", "message", "error_code"],
11848
- type: "object"
12071
+ type: "object",
12072
+ "x-resource-type": "acs_user"
11849
12073
  },
11850
12074
  {
11851
12075
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).",
@@ -11865,7 +12089,8 @@ var openapi = {
11865
12089
  }
11866
12090
  },
11867
12091
  required: ["created_at", "message", "error_code"],
11868
- type: "object"
12092
+ type: "object",
12093
+ "x-resource-type": "acs_user"
11869
12094
  }
11870
12095
  ]
11871
12096
  },
@@ -18076,7 +18301,8 @@ var openapi = {
18076
18301
  }
18077
18302
  },
18078
18303
  required: ["created_at", "message", "error_code"],
18079
- type: "object"
18304
+ type: "object",
18305
+ "x-resource-type": "connected_account"
18080
18306
  },
18081
18307
  {
18082
18308
  description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
@@ -18105,7 +18331,8 @@ var openapi = {
18105
18331
  }
18106
18332
  },
18107
18333
  required: ["created_at", "message", "error_code"],
18108
- type: "object"
18334
+ type: "object",
18335
+ "x-resource-type": "connected_account"
18109
18336
  },
18110
18337
  {
18111
18338
  description: "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.",
@@ -18180,7 +18407,8 @@ var openapi = {
18180
18407
  "error_code",
18181
18408
  "salto_ks_metadata"
18182
18409
  ],
18183
- type: "object"
18410
+ type: "object",
18411
+ "x-resource-type": "connected_account"
18184
18412
  },
18185
18413
  {
18186
18414
  description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
@@ -18209,7 +18437,8 @@ var openapi = {
18209
18437
  }
18210
18438
  },
18211
18439
  required: ["created_at", "message", "error_code"],
18212
- type: "object"
18440
+ type: "object",
18441
+ "x-resource-type": "connected_account"
18213
18442
  }
18214
18443
  ]
18215
18444
  },
@@ -18885,7 +19114,8 @@ var openapi = {
18885
19114
  "error_code",
18886
19115
  "is_connected_account_error"
18887
19116
  ],
18888
- type: "object"
19117
+ type: "object",
19118
+ "x-resource-type": "connected_account"
18889
19119
  },
18890
19120
  {
18891
19121
  description: "Indicates that the Salto site user limit has been reached.",
@@ -18923,6 +19153,7 @@ var openapi = {
18923
19153
  "is_connected_account_error"
18924
19154
  ],
18925
19155
  type: "object",
19156
+ "x-resource-type": "connected_account",
18926
19157
  "x-variant-group-key": "locks"
18927
19158
  },
18928
19159
  {
@@ -18956,7 +19187,8 @@ var openapi = {
18956
19187
  "error_code"
18957
19188
  ],
18958
19189
  type: "object",
18959
- "x-deprecated": "Use `device_disconnected` instead."
19190
+ "x-deprecated": "Use `device_disconnected` instead.",
19191
+ "x-resource-type": "device"
18960
19192
  },
18961
19193
  {
18962
19194
  description: "Indicates that the device has been removed.",
@@ -18987,7 +19219,8 @@ var openapi = {
18987
19219
  "created_at",
18988
19220
  "error_code"
18989
19221
  ],
18990
- type: "object"
19222
+ type: "object",
19223
+ "x-resource-type": "device"
18991
19224
  },
18992
19225
  {
18993
19226
  description: "Indicates that the hub is disconnected.",
@@ -19018,7 +19251,8 @@ var openapi = {
19018
19251
  "created_at",
19019
19252
  "error_code"
19020
19253
  ],
19021
- type: "object"
19254
+ type: "object",
19255
+ "x-resource-type": "device"
19022
19256
  },
19023
19257
  {
19024
19258
  description: "Indicates that the device is disconnected.",
@@ -19049,7 +19283,8 @@ var openapi = {
19049
19283
  "created_at",
19050
19284
  "error_code"
19051
19285
  ],
19052
- type: "object"
19286
+ type: "object",
19287
+ "x-resource-type": "device"
19053
19288
  },
19054
19289
  {
19055
19290
  description: "Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.",
@@ -19081,6 +19316,7 @@ var openapi = {
19081
19316
  "error_code"
19082
19317
  ],
19083
19318
  type: "object",
19319
+ "x-resource-type": "device",
19084
19320
  "x-variant-group-key": "access_codes"
19085
19321
  },
19086
19322
  {
@@ -19113,6 +19349,7 @@ var openapi = {
19113
19349
  "error_code"
19114
19350
  ],
19115
19351
  type: "object",
19352
+ "x-resource-type": "device",
19116
19353
  "x-variant-group-key": "locks"
19117
19354
  },
19118
19355
  {
@@ -19147,6 +19384,7 @@ var openapi = {
19147
19384
  ],
19148
19385
  type: "object",
19149
19386
  "x-deprecated": "Use `hub_disconnected` instead.",
19387
+ "x-resource-type": "device",
19150
19388
  "x-variant-group-key": "locks"
19151
19389
  },
19152
19390
  {
@@ -19180,7 +19418,8 @@ var openapi = {
19180
19418
  "error_code"
19181
19419
  ],
19182
19420
  type: "object",
19183
- "x-deprecated": "Use `hub_disconnected` instead."
19421
+ "x-deprecated": "Use `hub_disconnected` instead.",
19422
+ "x-resource-type": "device"
19184
19423
  },
19185
19424
  {
19186
19425
  description: "Indicates that device credentials are missing.",
@@ -19211,7 +19450,8 @@ var openapi = {
19211
19450
  "created_at",
19212
19451
  "error_code"
19213
19452
  ],
19214
- type: "object"
19453
+ type: "object",
19454
+ "x-resource-type": "device"
19215
19455
  },
19216
19456
  {
19217
19457
  description: "Indicates that the auxiliary heat is running.",
@@ -19243,6 +19483,7 @@ var openapi = {
19243
19483
  "error_code"
19244
19484
  ],
19245
19485
  type: "object",
19486
+ "x-resource-type": "device",
19246
19487
  "x-variant-group-key": "thermostats"
19247
19488
  },
19248
19489
  {
@@ -19274,7 +19515,8 @@ var openapi = {
19274
19515
  "created_at",
19275
19516
  "error_code"
19276
19517
  ],
19277
- type: "object"
19518
+ type: "object",
19519
+ "x-resource-type": "device"
19278
19520
  },
19279
19521
  {
19280
19522
  deprecated: true,
@@ -19307,7 +19549,8 @@ var openapi = {
19307
19549
  "error_code"
19308
19550
  ],
19309
19551
  type: "object",
19310
- "x-deprecated": "Use `hub_disconnected` instead."
19552
+ "x-deprecated": "Use `hub_disconnected` instead.",
19553
+ "x-resource-type": "device"
19311
19554
  },
19312
19555
  {
19313
19556
  description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
@@ -19336,7 +19579,8 @@ var openapi = {
19336
19579
  }
19337
19580
  },
19338
19581
  required: ["created_at", "message", "error_code"],
19339
- type: "object"
19582
+ type: "object",
19583
+ "x-resource-type": "connected_account"
19340
19584
  },
19341
19585
  {
19342
19586
  description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
@@ -19365,7 +19609,8 @@ var openapi = {
19365
19609
  }
19366
19610
  },
19367
19611
  required: ["created_at", "message", "error_code"],
19368
- type: "object"
19612
+ type: "object",
19613
+ "x-resource-type": "connected_account"
19369
19614
  }
19370
19615
  ]
19371
19616
  },
@@ -23163,6 +23408,110 @@ var openapi = {
23163
23408
  type: "object",
23164
23409
  "x-route-path": "/access_codes"
23165
23410
  },
23411
+ {
23412
+ description: "Mutations were requested on an [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes). This event fires at request time, before the change is confirmed on the device.",
23413
+ properties: {
23414
+ access_code_id: {
23415
+ description: "ID of the affected access code.",
23416
+ format: "uuid",
23417
+ type: "string"
23418
+ },
23419
+ connected_account_custom_metadata: {
23420
+ additionalProperties: {
23421
+ oneOf: [{ type: "string" }, { type: "boolean" }]
23422
+ },
23423
+ description: "Custom metadata of the connected account, present when connected_account_id is provided.",
23424
+ type: "object"
23425
+ },
23426
+ connected_account_id: {
23427
+ description: "ID of the connected account associated with the affected access code.",
23428
+ format: "uuid",
23429
+ type: "string"
23430
+ },
23431
+ created_at: {
23432
+ description: "Date and time at which the event was created.",
23433
+ format: "date-time",
23434
+ type: "string"
23435
+ },
23436
+ device_custom_metadata: {
23437
+ additionalProperties: {
23438
+ oneOf: [{ type: "string" }, { type: "boolean" }]
23439
+ },
23440
+ description: "Custom metadata of the device, present when device_id is provided.",
23441
+ type: "object"
23442
+ },
23443
+ device_id: {
23444
+ description: "ID of the device associated with the affected access code.",
23445
+ format: "uuid",
23446
+ type: "string"
23447
+ },
23448
+ event_id: {
23449
+ description: "ID of the event.",
23450
+ format: "uuid",
23451
+ type: "string"
23452
+ },
23453
+ event_type: {
23454
+ enum: ["access_code.mutations_requested"],
23455
+ type: "string"
23456
+ },
23457
+ occurred_at: {
23458
+ description: "Date and time at which the event occurred.",
23459
+ format: "date-time",
23460
+ type: "string"
23461
+ },
23462
+ requested_mutations: {
23463
+ description: "Array of mutations requested on the access code, each containing the mutation type and from/to values.",
23464
+ items: {
23465
+ description: "Record describing a single requested mutation.",
23466
+ properties: {
23467
+ from: {
23468
+ additionalProperties: {},
23469
+ description: "Previous property values before the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`.",
23470
+ type: "object"
23471
+ },
23472
+ mutation_code: {
23473
+ description: "Code identifying the type of mutation requested, such as `updating_name`, `updating_code`, `updating_time_frame`, or `deleting`.",
23474
+ enum: [
23475
+ "updating_name",
23476
+ "updating_code",
23477
+ "updating_time_frame",
23478
+ "deleting",
23479
+ "creating",
23480
+ "deferring_creation"
23481
+ ],
23482
+ type: "string"
23483
+ },
23484
+ to: {
23485
+ additionalProperties: {},
23486
+ description: "New property values after the requested change. Keys depend on the mutation type. Absent for non-property mutations like `deleting`.",
23487
+ type: "object"
23488
+ }
23489
+ },
23490
+ required: ["mutation_code"],
23491
+ type: "object"
23492
+ },
23493
+ type: "array"
23494
+ },
23495
+ workspace_id: {
23496
+ description: "ID of the workspace associated with the event.",
23497
+ format: "uuid",
23498
+ type: "string"
23499
+ }
23500
+ },
23501
+ required: [
23502
+ "event_id",
23503
+ "workspace_id",
23504
+ "created_at",
23505
+ "occurred_at",
23506
+ "access_code_id",
23507
+ "device_id",
23508
+ "connected_account_id",
23509
+ "event_type",
23510
+ "requested_mutations"
23511
+ ],
23512
+ type: "object",
23513
+ "x-route-path": "/access_codes"
23514
+ },
23166
23515
  {
23167
23516
  description: "An [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes) was [scheduled natively](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) on a device.",
23168
23517
  properties: {
@@ -33040,7 +33389,8 @@ var openapi = {
33040
33389
  }
33041
33390
  },
33042
33391
  required: ["message", "is_access_code_error", "error_code"],
33043
- type: "object"
33392
+ type: "object",
33393
+ "x-resource-type": "access_code"
33044
33394
  },
33045
33395
  {
33046
33396
  description: "Failed to set code on device.",
@@ -33066,7 +33416,8 @@ var openapi = {
33066
33416
  }
33067
33417
  },
33068
33418
  required: ["message", "is_access_code_error", "error_code"],
33069
- type: "object"
33419
+ type: "object",
33420
+ "x-resource-type": "access_code"
33070
33421
  },
33071
33422
  {
33072
33423
  description: "Failed to remove code from device.",
@@ -33092,7 +33443,8 @@ var openapi = {
33092
33443
  }
33093
33444
  },
33094
33445
  required: ["message", "is_access_code_error", "error_code"],
33095
- type: "object"
33446
+ type: "object",
33447
+ "x-resource-type": "access_code"
33096
33448
  },
33097
33449
  {
33098
33450
  description: "Duplicate access code detected on device.",
@@ -33128,7 +33480,8 @@ var openapi = {
33128
33480
  }
33129
33481
  },
33130
33482
  required: ["message", "is_access_code_error", "error_code"],
33131
- type: "object"
33483
+ type: "object",
33484
+ "x-resource-type": "access_code"
33132
33485
  },
33133
33486
  {
33134
33487
  description: "An attempt to modify this access code was prevented.",
@@ -33154,7 +33507,8 @@ var openapi = {
33154
33507
  }
33155
33508
  },
33156
33509
  required: ["message", "is_access_code_error", "error_code"],
33157
- type: "object"
33510
+ type: "object",
33511
+ "x-resource-type": "access_code"
33158
33512
  },
33159
33513
  {
33160
33514
  description: "No space for access code on device.",
@@ -33180,7 +33534,8 @@ var openapi = {
33180
33534
  }
33181
33535
  },
33182
33536
  required: ["message", "is_access_code_error", "error_code"],
33183
- type: "object"
33537
+ type: "object",
33538
+ "x-resource-type": "access_code"
33184
33539
  },
33185
33540
  {
33186
33541
  description: "Indicates that the provider cannot confirm whether the access code was set or removed on the device.",
@@ -33206,7 +33561,8 @@ var openapi = {
33206
33561
  }
33207
33562
  },
33208
33563
  required: ["message", "is_access_code_error", "error_code"],
33209
- type: "object"
33564
+ type: "object",
33565
+ "x-resource-type": "access_code"
33210
33566
  },
33211
33567
  {
33212
33568
  description: "Code was modified or removed externally after Seam successfully set it on the device.",
@@ -33261,7 +33617,8 @@ var openapi = {
33261
33617
  }
33262
33618
  },
33263
33619
  required: ["message", "is_access_code_error", "error_code"],
33264
- type: "object"
33620
+ type: "object",
33621
+ "x-resource-type": "access_code"
33265
33622
  },
33266
33623
  {
33267
33624
  description: "Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.",
@@ -33287,7 +33644,8 @@ var openapi = {
33287
33644
  }
33288
33645
  },
33289
33646
  required: ["message", "is_access_code_error", "error_code"],
33290
- type: "object"
33647
+ type: "object",
33648
+ "x-resource-type": "access_code"
33291
33649
  },
33292
33650
  {
33293
33651
  deprecated: true,
@@ -33315,7 +33673,8 @@ var openapi = {
33315
33673
  },
33316
33674
  required: ["message", "is_access_code_error", "error_code"],
33317
33675
  type: "object",
33318
- "x-deprecated": "Use `access_code_inactive` instead."
33676
+ "x-deprecated": "Use `access_code_inactive` instead.",
33677
+ "x-resource-type": "access_code"
33319
33678
  },
33320
33679
  {
33321
33680
  description: "Admin role required\u2014insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.",
@@ -33341,7 +33700,8 @@ var openapi = {
33341
33700
  }
33342
33701
  },
33343
33702
  required: ["message", "is_access_code_error", "error_code"],
33344
- type: "object"
33703
+ type: "object",
33704
+ "x-resource-type": "access_code"
33345
33705
  },
33346
33706
  {
33347
33707
  description: "This access code was overridden on the device by a newer access code programmed to the same slot.",
@@ -33367,7 +33727,8 @@ var openapi = {
33367
33727
  }
33368
33728
  },
33369
33729
  required: ["message", "is_access_code_error", "error_code"],
33370
- type: "object"
33730
+ type: "object",
33731
+ "x-resource-type": "access_code"
33371
33732
  },
33372
33733
  {
33373
33734
  description: "Indicates that the account is disconnected.",
@@ -33404,7 +33765,8 @@ var openapi = {
33404
33765
  "error_code",
33405
33766
  "is_connected_account_error"
33406
33767
  ],
33407
- type: "object"
33768
+ type: "object",
33769
+ "x-resource-type": "connected_account"
33408
33770
  },
33409
33771
  {
33410
33772
  description: "Indicates that the Salto site user limit has been reached.",
@@ -33442,6 +33804,7 @@ var openapi = {
33442
33804
  "is_connected_account_error"
33443
33805
  ],
33444
33806
  type: "object",
33807
+ "x-resource-type": "connected_account",
33445
33808
  "x-variant-group-key": "locks"
33446
33809
  },
33447
33810
  {
@@ -33475,7 +33838,8 @@ var openapi = {
33475
33838
  "error_code"
33476
33839
  ],
33477
33840
  type: "object",
33478
- "x-deprecated": "Use `device_disconnected` instead."
33841
+ "x-deprecated": "Use `device_disconnected` instead.",
33842
+ "x-resource-type": "device"
33479
33843
  },
33480
33844
  {
33481
33845
  description: "Indicates that the device has been removed.",
@@ -33506,7 +33870,8 @@ var openapi = {
33506
33870
  "created_at",
33507
33871
  "error_code"
33508
33872
  ],
33509
- type: "object"
33873
+ type: "object",
33874
+ "x-resource-type": "device"
33510
33875
  },
33511
33876
  {
33512
33877
  description: "Indicates that the hub is disconnected.",
@@ -33537,7 +33902,8 @@ var openapi = {
33537
33902
  "created_at",
33538
33903
  "error_code"
33539
33904
  ],
33540
- type: "object"
33905
+ type: "object",
33906
+ "x-resource-type": "device"
33541
33907
  },
33542
33908
  {
33543
33909
  description: "Indicates that the device is disconnected.",
@@ -33568,7 +33934,8 @@ var openapi = {
33568
33934
  "created_at",
33569
33935
  "error_code"
33570
33936
  ],
33571
- type: "object"
33937
+ type: "object",
33938
+ "x-resource-type": "device"
33572
33939
  },
33573
33940
  {
33574
33941
  description: "Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.",
@@ -33600,6 +33967,7 @@ var openapi = {
33600
33967
  "error_code"
33601
33968
  ],
33602
33969
  type: "object",
33970
+ "x-resource-type": "device",
33603
33971
  "x-variant-group-key": "access_codes"
33604
33972
  },
33605
33973
  {
@@ -33632,6 +34000,7 @@ var openapi = {
33632
34000
  "error_code"
33633
34001
  ],
33634
34002
  type: "object",
34003
+ "x-resource-type": "device",
33635
34004
  "x-variant-group-key": "locks"
33636
34005
  },
33637
34006
  {
@@ -33666,6 +34035,7 @@ var openapi = {
33666
34035
  ],
33667
34036
  type: "object",
33668
34037
  "x-deprecated": "Use `hub_disconnected` instead.",
34038
+ "x-resource-type": "device",
33669
34039
  "x-variant-group-key": "locks"
33670
34040
  },
33671
34041
  {
@@ -33699,7 +34069,8 @@ var openapi = {
33699
34069
  "error_code"
33700
34070
  ],
33701
34071
  type: "object",
33702
- "x-deprecated": "Use `hub_disconnected` instead."
34072
+ "x-deprecated": "Use `hub_disconnected` instead.",
34073
+ "x-resource-type": "device"
33703
34074
  },
33704
34075
  {
33705
34076
  description: "Indicates that device credentials are missing.",
@@ -33730,7 +34101,8 @@ var openapi = {
33730
34101
  "created_at",
33731
34102
  "error_code"
33732
34103
  ],
33733
- type: "object"
34104
+ type: "object",
34105
+ "x-resource-type": "device"
33734
34106
  },
33735
34107
  {
33736
34108
  description: "Indicates that the auxiliary heat is running.",
@@ -33762,6 +34134,7 @@ var openapi = {
33762
34134
  "error_code"
33763
34135
  ],
33764
34136
  type: "object",
34137
+ "x-resource-type": "device",
33765
34138
  "x-variant-group-key": "thermostats"
33766
34139
  },
33767
34140
  {
@@ -33793,7 +34166,8 @@ var openapi = {
33793
34166
  "created_at",
33794
34167
  "error_code"
33795
34168
  ],
33796
- type: "object"
34169
+ type: "object",
34170
+ "x-resource-type": "device"
33797
34171
  },
33798
34172
  {
33799
34173
  deprecated: true,
@@ -33826,7 +34200,8 @@ var openapi = {
33826
34200
  "error_code"
33827
34201
  ],
33828
34202
  type: "object",
33829
- "x-deprecated": "Use `hub_disconnected` instead."
34203
+ "x-deprecated": "Use `hub_disconnected` instead.",
34204
+ "x-resource-type": "device"
33830
34205
  },
33831
34206
  {
33832
34207
  description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
@@ -33855,7 +34230,8 @@ var openapi = {
33855
34230
  }
33856
34231
  },
33857
34232
  required: ["created_at", "message", "error_code"],
33858
- type: "object"
34233
+ type: "object",
34234
+ "x-resource-type": "connected_account"
33859
34235
  },
33860
34236
  {
33861
34237
  description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
@@ -33884,7 +34260,8 @@ var openapi = {
33884
34260
  }
33885
34261
  },
33886
34262
  required: ["created_at", "message", "error_code"],
33887
- type: "object"
34263
+ type: "object",
34264
+ "x-resource-type": "connected_account"
33888
34265
  }
33889
34266
  ]
33890
34267
  },
@@ -34338,7 +34715,8 @@ var openapi = {
34338
34715
  }
34339
34716
  },
34340
34717
  required: ["created_at", "message", "error_code"],
34341
- type: "object"
34718
+ type: "object",
34719
+ "x-resource-type": "acs_access_group"
34342
34720
  }
34343
34721
  ]
34344
34722
  },
@@ -35219,7 +35597,8 @@ var openapi = {
35219
35597
  }
35220
35598
  },
35221
35599
  required: ["created_at", "message", "error_code"],
35222
- type: "object"
35600
+ type: "object",
35601
+ "x-resource-type": "acs_user"
35223
35602
  },
35224
35603
  {
35225
35604
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.",
@@ -35239,7 +35618,8 @@ var openapi = {
35239
35618
  }
35240
35619
  },
35241
35620
  required: ["created_at", "message", "error_code"],
35242
- type: "object"
35621
+ type: "object",
35622
+ "x-resource-type": "acs_user"
35243
35623
  },
35244
35624
  {
35245
35625
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).",
@@ -35259,7 +35639,8 @@ var openapi = {
35259
35639
  }
35260
35640
  },
35261
35641
  required: ["created_at", "message", "error_code"],
35262
- type: "object"
35642
+ type: "object",
35643
+ "x-resource-type": "acs_user"
35263
35644
  },
35264
35645
  {
35265
35646
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).",
@@ -35279,7 +35660,8 @@ var openapi = {
35279
35660
  }
35280
35661
  },
35281
35662
  required: ["created_at", "message", "error_code"],
35282
- type: "object"
35663
+ type: "object",
35664
+ "x-resource-type": "acs_user"
35283
35665
  },
35284
35666
  {
35285
35667
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).",
@@ -35299,7 +35681,8 @@ var openapi = {
35299
35681
  }
35300
35682
  },
35301
35683
  required: ["created_at", "message", "error_code"],
35302
- type: "object"
35684
+ type: "object",
35685
+ "x-resource-type": "acs_user"
35303
35686
  },
35304
35687
  {
35305
35688
  description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).",
@@ -35319,7 +35702,8 @@ var openapi = {
35319
35702
  }
35320
35703
  },
35321
35704
  required: ["created_at", "message", "error_code"],
35322
- type: "object"
35705
+ type: "object",
35706
+ "x-resource-type": "acs_user"
35323
35707
  }
35324
35708
  ]
35325
35709
  },
@@ -36138,7 +36522,8 @@ var openapi = {
36138
36522
  "error_code",
36139
36523
  "is_connected_account_error"
36140
36524
  ],
36141
- type: "object"
36525
+ type: "object",
36526
+ "x-resource-type": "connected_account"
36142
36527
  },
36143
36528
  {
36144
36529
  description: "Indicates that the Salto site user limit has been reached.",
@@ -36176,6 +36561,7 @@ var openapi = {
36176
36561
  "is_connected_account_error"
36177
36562
  ],
36178
36563
  type: "object",
36564
+ "x-resource-type": "connected_account",
36179
36565
  "x-variant-group-key": "locks"
36180
36566
  },
36181
36567
  {
@@ -36209,7 +36595,8 @@ var openapi = {
36209
36595
  "error_code"
36210
36596
  ],
36211
36597
  type: "object",
36212
- "x-deprecated": "Use `device_disconnected` instead."
36598
+ "x-deprecated": "Use `device_disconnected` instead.",
36599
+ "x-resource-type": "device"
36213
36600
  },
36214
36601
  {
36215
36602
  description: "Indicates that the device has been removed.",
@@ -36240,7 +36627,8 @@ var openapi = {
36240
36627
  "created_at",
36241
36628
  "error_code"
36242
36629
  ],
36243
- type: "object"
36630
+ type: "object",
36631
+ "x-resource-type": "device"
36244
36632
  },
36245
36633
  {
36246
36634
  description: "Indicates that the hub is disconnected.",
@@ -36271,7 +36659,8 @@ var openapi = {
36271
36659
  "created_at",
36272
36660
  "error_code"
36273
36661
  ],
36274
- type: "object"
36662
+ type: "object",
36663
+ "x-resource-type": "device"
36275
36664
  },
36276
36665
  {
36277
36666
  description: "Indicates that the device is disconnected.",
@@ -36302,7 +36691,8 @@ var openapi = {
36302
36691
  "created_at",
36303
36692
  "error_code"
36304
36693
  ],
36305
- type: "object"
36694
+ type: "object",
36695
+ "x-resource-type": "device"
36306
36696
  },
36307
36697
  {
36308
36698
  description: "Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.",
@@ -36334,6 +36724,7 @@ var openapi = {
36334
36724
  "error_code"
36335
36725
  ],
36336
36726
  type: "object",
36727
+ "x-resource-type": "device",
36337
36728
  "x-variant-group-key": "access_codes"
36338
36729
  },
36339
36730
  {
@@ -36366,6 +36757,7 @@ var openapi = {
36366
36757
  "error_code"
36367
36758
  ],
36368
36759
  type: "object",
36760
+ "x-resource-type": "device",
36369
36761
  "x-variant-group-key": "locks"
36370
36762
  },
36371
36763
  {
@@ -36400,6 +36792,7 @@ var openapi = {
36400
36792
  ],
36401
36793
  type: "object",
36402
36794
  "x-deprecated": "Use `hub_disconnected` instead.",
36795
+ "x-resource-type": "device",
36403
36796
  "x-variant-group-key": "locks"
36404
36797
  },
36405
36798
  {
@@ -36433,7 +36826,8 @@ var openapi = {
36433
36826
  "error_code"
36434
36827
  ],
36435
36828
  type: "object",
36436
- "x-deprecated": "Use `hub_disconnected` instead."
36829
+ "x-deprecated": "Use `hub_disconnected` instead.",
36830
+ "x-resource-type": "device"
36437
36831
  },
36438
36832
  {
36439
36833
  description: "Indicates that device credentials are missing.",
@@ -36464,7 +36858,8 @@ var openapi = {
36464
36858
  "created_at",
36465
36859
  "error_code"
36466
36860
  ],
36467
- type: "object"
36861
+ type: "object",
36862
+ "x-resource-type": "device"
36468
36863
  },
36469
36864
  {
36470
36865
  description: "Indicates that the auxiliary heat is running.",
@@ -36496,6 +36891,7 @@ var openapi = {
36496
36891
  "error_code"
36497
36892
  ],
36498
36893
  type: "object",
36894
+ "x-resource-type": "device",
36499
36895
  "x-variant-group-key": "thermostats"
36500
36896
  },
36501
36897
  {
@@ -36527,7 +36923,8 @@ var openapi = {
36527
36923
  "created_at",
36528
36924
  "error_code"
36529
36925
  ],
36530
- type: "object"
36926
+ type: "object",
36927
+ "x-resource-type": "device"
36531
36928
  },
36532
36929
  {
36533
36930
  deprecated: true,
@@ -36560,7 +36957,8 @@ var openapi = {
36560
36957
  "error_code"
36561
36958
  ],
36562
36959
  type: "object",
36563
- "x-deprecated": "Use `hub_disconnected` instead."
36960
+ "x-deprecated": "Use `hub_disconnected` instead.",
36961
+ "x-resource-type": "device"
36564
36962
  },
36565
36963
  {
36566
36964
  description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
@@ -36589,7 +36987,8 @@ var openapi = {
36589
36987
  }
36590
36988
  },
36591
36989
  required: ["created_at", "message", "error_code"],
36592
- type: "object"
36990
+ type: "object",
36991
+ "x-resource-type": "connected_account"
36593
36992
  },
36594
36993
  {
36595
36994
  description: "Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.",
@@ -36618,7 +37017,8 @@ var openapi = {
36618
37017
  }
36619
37018
  },
36620
37019
  required: ["created_at", "message", "error_code"],
36621
- type: "object"
37020
+ type: "object",
37021
+ "x-resource-type": "connected_account"
36622
37022
  }
36623
37023
  ]
36624
37024
  },
@@ -62497,6 +62897,7 @@ var openapi = {
62497
62897
  "access_code.name_changed",
62498
62898
  "access_code.code_changed",
62499
62899
  "access_code.time_frame_changed",
62900
+ "access_code.mutations_requested",
62500
62901
  "access_code.scheduled_on_device",
62501
62902
  "access_code.set_on_device",
62502
62903
  "access_code.removed_from_device",
@@ -62614,6 +63015,7 @@ var openapi = {
62614
63015
  "access_code.name_changed",
62615
63016
  "access_code.code_changed",
62616
63017
  "access_code.time_frame_changed",
63018
+ "access_code.mutations_requested",
62617
63019
  "access_code.scheduled_on_device",
62618
63020
  "access_code.set_on_device",
62619
63021
  "access_code.removed_from_device",
@@ -63031,6 +63433,7 @@ var openapi = {
63031
63433
  "access_code.name_changed",
63032
63434
  "access_code.code_changed",
63033
63435
  "access_code.time_frame_changed",
63436
+ "access_code.mutations_requested",
63034
63437
  "access_code.scheduled_on_device",
63035
63438
  "access_code.set_on_device",
63036
63439
  "access_code.removed_from_device",
@@ -63144,6 +63547,7 @@ var openapi = {
63144
63547
  "access_code.name_changed",
63145
63548
  "access_code.code_changed",
63146
63549
  "access_code.time_frame_changed",
63550
+ "access_code.mutations_requested",
63147
63551
  "access_code.scheduled_on_device",
63148
63552
  "access_code.set_on_device",
63149
63553
  "access_code.removed_from_device",
@@ -73098,6 +73502,7 @@ var openapi = {
73098
73502
  "access_code.name_changed",
73099
73503
  "access_code.code_changed",
73100
73504
  "access_code.time_frame_changed",
73505
+ "access_code.mutations_requested",
73101
73506
  "access_code.scheduled_on_device",
73102
73507
  "access_code.set_on_device",
73103
73508
  "access_code.removed_from_device",
@@ -73216,6 +73621,7 @@ var openapi = {
73216
73621
  "access_code.name_changed",
73217
73622
  "access_code.code_changed",
73218
73623
  "access_code.time_frame_changed",
73624
+ "access_code.mutations_requested",
73219
73625
  "access_code.scheduled_on_device",
73220
73626
  "access_code.set_on_device",
73221
73627
  "access_code.removed_from_device",
@@ -73395,6 +73801,7 @@ var openapi = {
73395
73801
  "access_code.name_changed",
73396
73802
  "access_code.code_changed",
73397
73803
  "access_code.time_frame_changed",
73804
+ "access_code.mutations_requested",
73398
73805
  "access_code.scheduled_on_device",
73399
73806
  "access_code.set_on_device",
73400
73807
  "access_code.removed_from_device",
@@ -73508,6 +73915,7 @@ var openapi = {
73508
73915
  "access_code.name_changed",
73509
73916
  "access_code.code_changed",
73510
73917
  "access_code.time_frame_changed",
73918
+ "access_code.mutations_requested",
73511
73919
  "access_code.scheduled_on_device",
73512
73920
  "access_code.set_on_device",
73513
73921
  "access_code.removed_from_device",