@seamapi/types 1.949.0 → 1.951.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
@@ -2570,19 +2570,21 @@ var modified_field = zod.z.object({
2570
2570
  from: zod.z.string().nullable().describe("The previous value of the field."),
2571
2571
  to: zod.z.string().nullable().describe("The new value of the field.")
2572
2572
  });
2573
- var code_modified_external_to_seam_error = common_access_code_error.extend({
2574
- error_code: zod.z.literal("code_modified_external_to_seam").describe(error_code_description3),
2575
- change_type: zod.z.enum(["modified", "removed"]).optional().describe(
2576
- "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device."
2577
- ),
2578
- modified_fields: zod.z.array(modified_field).optional().describe(
2579
- "List of fields that were changed externally, with their previous and new values."
2580
- )
2581
- }).describe(`
2573
+ var conflicting_external_modification_error = common_access_code_error.extend(
2574
+ {
2575
+ error_code: zod.z.literal("conflicting_external_modification").describe(error_code_description3),
2576
+ change_type: zod.z.enum(["modified", "removed"]).optional().describe(
2577
+ "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device."
2578
+ ),
2579
+ modified_fields: zod.z.array(modified_field).optional().describe(
2580
+ "List of fields that were changed externally, with their previous and new values."
2581
+ )
2582
+ }
2583
+ ).describe(`
2582
2584
  ---
2583
2585
  resource_type: access_code
2584
2586
  ---
2585
- Code was modified or removed externally after Seam successfully set it on the device.
2587
+ Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.
2586
2588
  `);
2587
2589
  var failed_to_set_on_device = common_access_code_error.extend({
2588
2590
  error_code: zod.z.literal("failed_to_set_on_device").describe(error_code_description3)
@@ -2644,7 +2646,7 @@ var access_code_error = zod.z.discriminatedUnion("error_code", [
2644
2646
  failed_to_remove_from_device,
2645
2647
  duplicate_code_on_device,
2646
2648
  no_space_for_access_code_on_device,
2647
- code_modified_external_to_seam_error,
2649
+ conflicting_external_modification_error,
2648
2650
  access_code_inactive_error,
2649
2651
  insufficient_permissions2
2650
2652
  ]).describe(
@@ -2657,7 +2659,7 @@ zod.z.object({
2657
2659
  no_space_for_access_code_on_device: no_space_for_access_code_on_device.optional().nullable(),
2658
2660
  duplicate_code_on_device: duplicate_code_on_device.optional().nullable(),
2659
2661
  insufficient_permissions: insufficient_permissions2.optional().nullable(),
2660
- code_modified_external_to_seam_error: code_modified_external_to_seam_error.optional().nullable(),
2662
+ conflicting_external_modification: conflicting_external_modification_error.optional().nullable(),
2661
2663
  access_code_inactive: access_code_inactive_error.optional().nullable()
2662
2664
  });
2663
2665
  var common_access_code_warning = zod.z.object({
@@ -2667,8 +2669,8 @@ var common_access_code_warning = zod.z.object({
2667
2669
  created_at: zod.z.string().datetime().optional().describe("Date and time at which Seam created the warning.")
2668
2670
  });
2669
2671
  var warning_code_description3 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
2670
- var code_modified_external_to_seam_warning = common_access_code_warning.extend({
2671
- warning_code: zod.z.literal("code_modified_external_to_seam").describe(warning_code_description3),
2672
+ var external_modification_in_effect_warning = common_access_code_warning.extend({
2673
+ warning_code: zod.z.literal("external_modification_in_effect").describe(warning_code_description3),
2672
2674
  change_type: zod.z.enum(["modified", "removed"]).optional().describe(
2673
2675
  "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device."
2674
2676
  ),
@@ -2676,7 +2678,7 @@ var code_modified_external_to_seam_warning = common_access_code_warning.extend({
2676
2678
  "List of fields that were changed externally, with their previous and new values."
2677
2679
  )
2678
2680
  }).describe(
2679
- "Code was modified or removed externally after Seam successfully set it on the device."
2681
+ "Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored."
2680
2682
  );
2681
2683
  var code_rotates_periodically = common_access_code_warning.extend({
2682
2684
  warning_code: zod.z.literal("code_rotates_periodically").describe(warning_code_description3)
@@ -2716,7 +2718,7 @@ var being_deleted2 = common_access_code_warning.extend({
2716
2718
  var access_code_warning = zod.z.discriminatedUnion("warning_code", [
2717
2719
  code_rotates_periodically,
2718
2720
  time_frame_adjusted_for_unknown_time_zone,
2719
- code_modified_external_to_seam_warning,
2721
+ external_modification_in_effect_warning,
2720
2722
  delay_in_setting_on_device,
2721
2723
  delay_in_removing_from_device,
2722
2724
  third_party_integration_detected2,
@@ -2730,7 +2732,7 @@ var access_code_warning = zod.z.discriminatedUnion("warning_code", [
2730
2732
  zod.z.object({
2731
2733
  code_rotates_periodically: code_rotates_periodically.optional().nullable(),
2732
2734
  time_frame_adjusted_for_unknown_time_zone: time_frame_adjusted_for_unknown_time_zone.optional().nullable(),
2733
- code_modified_external_to_seam_warning: code_modified_external_to_seam_warning.optional().nullable(),
2735
+ external_modification_in_effect: external_modification_in_effect_warning.optional().nullable(),
2734
2736
  delay_in_setting_on_device: delay_in_setting_on_device.optional().nullable(),
2735
2737
  delay_in_removing_from_device: delay_in_removing_from_device.optional().nullable(),
2736
2738
  third_party_integration_detected: third_party_integration_detected2.optional().nullable(),
@@ -7779,7 +7781,7 @@ var openapi = {
7779
7781
  "x-resource-type": "access_code"
7780
7782
  },
7781
7783
  {
7782
- description: "Code was modified or removed externally after Seam successfully set it on the device.",
7784
+ description: "Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.",
7783
7785
  properties: {
7784
7786
  change_type: {
7785
7787
  description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
@@ -7793,7 +7795,7 @@ var openapi = {
7793
7795
  },
7794
7796
  error_code: {
7795
7797
  description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
7796
- enum: ["code_modified_external_to_seam"],
7798
+ enum: ["conflicting_external_modification"],
7797
7799
  type: "string"
7798
7800
  },
7799
7801
  is_access_code_error: {
@@ -8803,7 +8805,7 @@ var openapi = {
8803
8805
  type: "object"
8804
8806
  },
8805
8807
  {
8806
- description: "Code was modified or removed externally after Seam successfully set it on the device.",
8808
+ description: "Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.",
8807
8809
  properties: {
8808
8810
  change_type: {
8809
8811
  description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
@@ -8845,7 +8847,7 @@ var openapi = {
8845
8847
  },
8846
8848
  warning_code: {
8847
8849
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
8848
- enum: ["code_modified_external_to_seam"],
8850
+ enum: ["external_modification_in_effect"],
8849
8851
  type: "string"
8850
8852
  }
8851
8853
  },
@@ -34157,7 +34159,7 @@ var openapi = {
34157
34159
  "x-resource-type": "access_code"
34158
34160
  },
34159
34161
  {
34160
- description: "Code was modified or removed externally after Seam successfully set it on the device.",
34162
+ description: "Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.",
34161
34163
  properties: {
34162
34164
  change_type: {
34163
34165
  description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
@@ -34171,7 +34173,7 @@ var openapi = {
34171
34173
  },
34172
34174
  error_code: {
34173
34175
  description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
34174
- enum: ["code_modified_external_to_seam"],
34176
+ enum: ["conflicting_external_modification"],
34175
34177
  type: "string"
34176
34178
  },
34177
34179
  is_access_code_error: {
@@ -34898,7 +34900,7 @@ var openapi = {
34898
34900
  type: "object"
34899
34901
  },
34900
34902
  {
34901
- description: "Code was modified or removed externally after Seam successfully set it on the device.",
34903
+ description: "Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.",
34902
34904
  properties: {
34903
34905
  change_type: {
34904
34906
  description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
@@ -34940,7 +34942,7 @@ var openapi = {
34940
34942
  },
34941
34943
  warning_code: {
34942
34944
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
34943
- enum: ["code_modified_external_to_seam"],
34945
+ enum: ["external_modification_in_effect"],
34944
34946
  type: "string"
34945
34947
  }
34946
34948
  },
@@ -70085,7 +70087,8 @@ var openapi = {
70085
70087
  "SALTO_KS_ENTRANCES_ONLY_FOR_SPACES",
70086
70088
  "MANAGE_DEVICES_CONFIRMATION_MODAL",
70087
70089
  "RECLAIM_ORPHANED_BACKUP_ACCESS_CODES",
70088
- "LYNX_MIGRATION_ENABLED"
70090
+ "LYNX_MIGRATION_ENABLED",
70091
+ "AURORA_CUSTOMER_FILTER_ENABLED"
70089
70092
  ],
70090
70093
  type: "string"
70091
70094
  }
@@ -70114,7 +70117,8 @@ var openapi = {
70114
70117
  "SALTO_KS_ENTRANCES_ONLY_FOR_SPACES",
70115
70118
  "MANAGE_DEVICES_CONFIRMATION_MODAL",
70116
70119
  "RECLAIM_ORPHANED_BACKUP_ACCESS_CODES",
70117
- "LYNX_MIGRATION_ENABLED"
70120
+ "LYNX_MIGRATION_ENABLED",
70121
+ "AURORA_CUSTOMER_FILTER_ENABLED"
70118
70122
  ],
70119
70123
  type: "string"
70120
70124
  }