@seamapi/types 1.393.0 → 1.395.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/connect.cjs CHANGED
@@ -63,7 +63,7 @@ var access_code_code_constraint = zod.z.object({
63
63
  "no_triple_consecutive_ints",
64
64
  // Brivo
65
65
  "cannot_specify_pin_code",
66
- // Lockly
66
+ // Dormakaba?
67
67
  "pin_code_matches_existing_set",
68
68
  // Salto
69
69
  "start_date_in_future",
@@ -1450,6 +1450,9 @@ var duplicate_code_on_device = common_access_code_error.extend({
1450
1450
  var duplicate_code_attempt_prevented = common_access_code_error.extend({
1451
1451
  error_code: zod.z.literal("duplicate_code_attempt_prevented").describe(error_code_description3)
1452
1452
  }).describe("An attempt to modify this access code was prevented.");
1453
+ var no_space_for_access_code_on_device = common_access_code_error.extend({
1454
+ error_code: zod.z.literal("no_space_for_access_code_on_device").describe(error_code_description3)
1455
+ }).describe("No space for access code on device.");
1453
1456
  var igloohome_bridge_too_many_pending_jobs = common_access_code_error.extend({
1454
1457
  error_code: zod.z.literal("igloohome_bridge_too_many_pending_jobs").describe(error_code_description3)
1455
1458
  }).describe("Igloohome bridge has too many pending jobs in the queue.");
@@ -1467,6 +1470,9 @@ var kwikset_unable_to_confirm_deletion = common_access_code_error.extend({
1467
1470
  var igloohome_offline_access_code_no_variance_available = common_access_code_error.extend({
1468
1471
  error_code: zod.z.literal("igloohome_offline_access_code_no_variance_available").describe(error_code_description3)
1469
1472
  }).describe("Lock has reached maximum amount of codes.");
1473
+ var schlage_lock_exceeds_maximum_number_of_access_codes = common_access_code_error.extend({
1474
+ error_code: zod.z.literal("schlage_lock_exceeds_maximum_number_of_access_codes").describe(error_code_description3)
1475
+ }).describe("Lock has reached maximum amount of codes.");
1470
1476
  var august_lock_invalid_code_length = common_access_code_error.extend({
1471
1477
  error_code: zod.z.literal("august_lock_invalid_code_length").describe(error_code_description3)
1472
1478
  }).describe("Invalid code length for August lock.");
@@ -1511,9 +1517,11 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
1511
1517
  failed_to_remove_from_device,
1512
1518
  duplicate_code_on_device,
1513
1519
  duplicate_code_attempt_prevented,
1520
+ no_space_for_access_code_on_device,
1514
1521
  igloohome_bridge_too_many_pending_jobs,
1515
1522
  igloohome_bridge_offline,
1516
1523
  igloohome_offline_access_code_no_variance_available,
1524
+ schlage_lock_exceeds_maximum_number_of_access_codes,
1517
1525
  kwikset_unable_to_confirm_code,
1518
1526
  kwikset_unable_to_confirm_deletion,
1519
1527
  code_modified_external_to_seam_error,
@@ -1537,6 +1545,7 @@ zod.z.object({
1537
1545
  smartthings_no_free_slots_available: smartthings_no_free_slots_available.optional().nullable(),
1538
1546
  failed_to_set_on_device: failed_to_set_on_device.optional().nullable(),
1539
1547
  failed_to_remove_from_device: failed_to_remove_from_device.optional().nullable(),
1548
+ no_space_for_access_code_on_device: no_space_for_access_code_on_device.optional().nullable(),
1540
1549
  duplicate_code_on_device: duplicate_code_on_device.optional().nullable(),
1541
1550
  duplicate_code_attempt_prevented: duplicate_code_attempt_prevented.optional().nullable(),
1542
1551
  igloohome_bridge_too_many_pending_jobs: igloohome_bridge_too_many_pending_jobs.optional().nullable(),
@@ -1555,7 +1564,8 @@ zod.z.object({
1555
1564
  hubitat_no_free_positions_available: hubitat_no_free_positions_available.optional().nullable(),
1556
1565
  wyze_duplicate_code_name: wyze_duplicate_code_name.optional().nullable(),
1557
1566
  wyze_potential_duplicate_code: wyze_potential_duplicate_code.optional().nullable(),
1558
- dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level.optional().nullable()
1567
+ dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level.optional().nullable(),
1568
+ schlage_lock_exceeds_maximum_number_of_access_codes: schlage_lock_exceeds_maximum_number_of_access_codes.optional().nullable()
1559
1569
  });
1560
1570
  var common_access_code_warning = zod.z.object({
1561
1571
  message: zod.z.string().describe(
@@ -2757,7 +2767,13 @@ var common_acs_user = zod.z.object({
2757
2767
  ),
2758
2768
  pending_mutations: zod.z.array(acs_user_pending_mutations).optional().describe(
2759
2769
  "Pending mutations associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system."
2760
- )
2770
+ ),
2771
+ last_successful_sync_at: zod.z.string().datetime().nullable().describe(`
2772
+ ---
2773
+ undocumented: Only used internally.
2774
+ ---
2775
+ The last time an internal sync job completed for this ACS user.
2776
+ `)
2761
2777
  }).merge(user_fields);
2762
2778
  var acs_user = common_acs_user.merge(
2763
2779
  zod.z.object({
@@ -4776,6 +4792,32 @@ var openapi_default = {
4776
4792
  required: ["message", "is_access_code_error", "error_code"],
4777
4793
  type: "object"
4778
4794
  },
4795
+ {
4796
+ description: "No space for access code on device.",
4797
+ properties: {
4798
+ created_at: {
4799
+ description: "Date and time at which Seam created the error.",
4800
+ format: "date-time",
4801
+ type: "string"
4802
+ },
4803
+ error_code: {
4804
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
4805
+ enum: ["no_space_for_access_code_on_device"],
4806
+ type: "string"
4807
+ },
4808
+ is_access_code_error: {
4809
+ description: "Indicates that this is an access code error.",
4810
+ enum: [true],
4811
+ type: "boolean"
4812
+ },
4813
+ message: {
4814
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
4815
+ type: "string"
4816
+ }
4817
+ },
4818
+ required: ["message", "is_access_code_error", "error_code"],
4819
+ type: "object"
4820
+ },
4779
4821
  {
4780
4822
  description: "Igloohome bridge has too many pending jobs in the queue.",
4781
4823
  properties: {
@@ -4856,6 +4898,34 @@ var openapi_default = {
4856
4898
  required: ["message", "is_access_code_error", "error_code"],
4857
4899
  type: "object"
4858
4900
  },
4901
+ {
4902
+ description: "Lock has reached maximum amount of codes.",
4903
+ properties: {
4904
+ created_at: {
4905
+ description: "Date and time at which Seam created the error.",
4906
+ format: "date-time",
4907
+ type: "string"
4908
+ },
4909
+ error_code: {
4910
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
4911
+ enum: [
4912
+ "schlage_lock_exceeds_maximum_number_of_access_codes"
4913
+ ],
4914
+ type: "string"
4915
+ },
4916
+ is_access_code_error: {
4917
+ description: "Indicates that this is an access code error.",
4918
+ enum: [true],
4919
+ type: "boolean"
4920
+ },
4921
+ message: {
4922
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
4923
+ type: "string"
4924
+ }
4925
+ },
4926
+ required: ["message", "is_access_code_error", "error_code"],
4927
+ type: "object"
4928
+ },
4859
4929
  {
4860
4930
  description: "Unable to confirm that the access code is set on Kwikset device.",
4861
4931
  properties: {
@@ -7148,6 +7218,13 @@ var openapi_default = {
7148
7218
  description: "Indicates whether the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).",
7149
7219
  type: "boolean"
7150
7220
  },
7221
+ last_successful_sync_at: {
7222
+ description: "The last time an internal sync job completed for this ACS user.",
7223
+ format: "date-time",
7224
+ nullable: true,
7225
+ type: "string",
7226
+ "x-undocumented": "Only used internally."
7227
+ },
7151
7228
  pending_mutations: {
7152
7229
  description: "Pending mutations associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.",
7153
7230
  items: {
@@ -7510,6 +7587,7 @@ var openapi_default = {
7510
7587
  "display_name",
7511
7588
  "warnings",
7512
7589
  "errors",
7590
+ "last_successful_sync_at",
7513
7591
  "is_managed"
7514
7592
  ],
7515
7593
  type: "object",
@@ -18641,6 +18719,32 @@ var openapi_default = {
18641
18719
  required: ["message", "is_access_code_error", "error_code"],
18642
18720
  type: "object"
18643
18721
  },
18722
+ {
18723
+ description: "No space for access code on device.",
18724
+ properties: {
18725
+ created_at: {
18726
+ description: "Date and time at which Seam created the error.",
18727
+ format: "date-time",
18728
+ type: "string"
18729
+ },
18730
+ error_code: {
18731
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
18732
+ enum: ["no_space_for_access_code_on_device"],
18733
+ type: "string"
18734
+ },
18735
+ is_access_code_error: {
18736
+ description: "Indicates that this is an access code error.",
18737
+ enum: [true],
18738
+ type: "boolean"
18739
+ },
18740
+ message: {
18741
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
18742
+ type: "string"
18743
+ }
18744
+ },
18745
+ required: ["message", "is_access_code_error", "error_code"],
18746
+ type: "object"
18747
+ },
18644
18748
  {
18645
18749
  description: "Igloohome bridge has too many pending jobs in the queue.",
18646
18750
  properties: {
@@ -18721,6 +18825,34 @@ var openapi_default = {
18721
18825
  required: ["message", "is_access_code_error", "error_code"],
18722
18826
  type: "object"
18723
18827
  },
18828
+ {
18829
+ description: "Lock has reached maximum amount of codes.",
18830
+ properties: {
18831
+ created_at: {
18832
+ description: "Date and time at which Seam created the error.",
18833
+ format: "date-time",
18834
+ type: "string"
18835
+ },
18836
+ error_code: {
18837
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
18838
+ enum: [
18839
+ "schlage_lock_exceeds_maximum_number_of_access_codes"
18840
+ ],
18841
+ type: "string"
18842
+ },
18843
+ is_access_code_error: {
18844
+ description: "Indicates that this is an access code error.",
18845
+ enum: [true],
18846
+ type: "boolean"
18847
+ },
18848
+ message: {
18849
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
18850
+ type: "string"
18851
+ }
18852
+ },
18853
+ required: ["message", "is_access_code_error", "error_code"],
18854
+ type: "object"
18855
+ },
18724
18856
  {
18725
18857
  description: "Unable to confirm that the access code is set on Kwikset device.",
18726
18858
  properties: {
@@ -20326,6 +20458,13 @@ var openapi_default = {
20326
20458
  description: "Indicates whether the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).",
20327
20459
  type: "boolean"
20328
20460
  },
20461
+ last_successful_sync_at: {
20462
+ description: "The last time an internal sync job completed for this ACS user.",
20463
+ format: "date-time",
20464
+ nullable: true,
20465
+ type: "string",
20466
+ "x-undocumented": "Only used internally."
20467
+ },
20329
20468
  pending_mutations: {
20330
20469
  description: "Pending mutations associated with the [ACS user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.",
20331
20470
  items: {
@@ -20688,6 +20827,7 @@ var openapi_default = {
20688
20827
  "display_name",
20689
20828
  "warnings",
20690
20829
  "errors",
20830
+ "last_successful_sync_at",
20691
20831
  "is_managed"
20692
20832
  ],
20693
20833
  type: "object",