@seamapi/types 1.361.0 → 1.362.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
@@ -994,15 +994,17 @@ var partial_backup_access_code_pool = common_device_warning.extend({
994
994
  var many_active_backup_codes = common_device_warning.extend({
995
995
  warning_code: zod.z.literal("many_active_backup_codes").describe(warning_code_description2)
996
996
  }).describe("Too many backup codes.");
997
- var salto_unknown_device_type = common_device_warning.extend({
998
- warning_code: zod.z.literal("salto_unknown_device_type").describe(warning_code_description2)
999
- }).describe("A Salto Lock displaying an unknown device type.");
1000
- var salto_office_mode = common_device_warning.extend({
1001
- warning_code: zod.z.literal("salto_office_mode").describe(warning_code_description2)
997
+ var salto_ks_office_mode = common_device_warning.extend({
998
+ warning_code: zod.z.literal("salto_ks_office_mode").describe(warning_code_description2)
1002
999
  }).describe("Lock is in Office Mode. Access Codes will not unlock doors.");
1003
- var salto_privacy_mode = common_device_warning.extend({
1004
- warning_code: zod.z.literal("salto_privacy_mode").describe(warning_code_description2)
1000
+ var salto_ks_privacy_mode = common_device_warning.extend({
1001
+ warning_code: zod.z.literal("salto_ks_privacy_mode").describe(warning_code_description2)
1005
1002
  }).describe("Lock is in Privacy Mode. Access Codes will not unlock doors.");
1003
+ var salto_ks_subscription_limit_almost_reached2 = common_device_warning.extend({
1004
+ warning_code: zod.z.literal("salto_ks_subscription_limit_almost_reached").describe(warning_code_description2)
1005
+ }).describe(
1006
+ "Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this."
1007
+ );
1006
1008
  var wyze_device_missing_gateway = common_device_warning.extend({
1007
1009
  warning_code: zod.z.literal("wyze_device_missing_gateway").describe(warning_code_description2)
1008
1010
  }).describe("Wyze Lock is not connected to a gateway.");
@@ -1041,7 +1043,6 @@ var unknown_issue_with_phone = common_device_warning.extend({
1041
1043
  var device_warning = zod.z.discriminatedUnion("warning_code", [
1042
1044
  partial_backup_access_code_pool,
1043
1045
  many_active_backup_codes,
1044
- salto_unknown_device_type,
1045
1046
  wyze_device_missing_gateway,
1046
1047
  functional_offline_device,
1047
1048
  third_party_integration_detected,
@@ -1052,14 +1053,18 @@ var device_warning = zod.z.discriminatedUnion("warning_code", [
1052
1053
  device_communication_degraded,
1053
1054
  scheduled_maintenance_window2,
1054
1055
  device_has_flaky_connection,
1055
- salto_office_mode,
1056
- salto_privacy_mode,
1056
+ salto_ks_office_mode,
1057
+ salto_ks_privacy_mode,
1058
+ salto_ks_subscription_limit_almost_reached2,
1057
1059
  unknown_issue_with_phone
1058
1060
  ]);
1059
1061
  zod.z.object({
1060
1062
  partial_backup_access_code_pool: partial_backup_access_code_pool.optional().nullable(),
1061
1063
  many_active_backup_codes: many_active_backup_codes.optional().nullable(),
1062
- salto_unknown_device_type: salto_unknown_device_type.optional().nullable(),
1064
+ device_has_flaky_connection: device_has_flaky_connection.extend({
1065
+ _event_id: zod.z.string().uuid().optional(),
1066
+ _reason: zod.z.string().optional()
1067
+ }).optional().nullable(),
1063
1068
  wyze_device_missing_gateway: wyze_device_missing_gateway.optional().nullable(),
1064
1069
  functional_offline_device: functional_offline_device.optional().nullable(),
1065
1070
  third_party_integration_detected: third_party_integration_detected.optional().nullable(),
@@ -1069,11 +1074,9 @@ zod.z.object({
1069
1074
  temperature_threshold_exceeded: temperature_threshold_exceeded.optional().nullable(),
1070
1075
  device_communication_degraded: device_communication_degraded.optional().nullable(),
1071
1076
  scheduled_maintenance_window: scheduled_maintenance_window2.optional().nullable(),
1072
- device_has_flaky_connection: device_has_flaky_connection.extend({
1073
- _event_id: zod.z.string().uuid().optional()
1074
- }).optional().nullable(),
1075
- salto_office_mode: salto_office_mode.optional().nullable(),
1076
- salto_privacy_mode: salto_privacy_mode.optional().nullable(),
1077
+ salto_ks_office_mode: salto_ks_office_mode.optional().nullable(),
1078
+ salto_ks_privacy_mode: salto_ks_privacy_mode.optional().nullable(),
1079
+ salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached2.optional().nullable(),
1077
1080
  unknown_issue_with_phone: unknown_issue_with_phone.optional().nullable()
1078
1081
  });
1079
1082
  var common_device_properties = zod.z.object({
@@ -1469,7 +1472,7 @@ var schlage_detected_duplicate = common_access_code_warning.extend({
1469
1472
  var schlage_creation_outage = common_access_code_warning.extend({
1470
1473
  warning_code: zod.z.literal("schlage_creation_outage").describe(warning_code_description3)
1471
1474
  }).describe("Received an error when attempting to create this code.");
1472
- var salto_office_mode2 = common_access_code_warning.extend({
1475
+ var salto_office_mode = common_access_code_warning.extend({
1473
1476
  warning_code: zod.z.literal("salto_office_mode").describe(warning_code_description3)
1474
1477
  }).describe("Lock is in Office Mode. Access Codes will not unlock doors.");
1475
1478
  var delay_in_setting_on_device = common_access_code_warning.extend({
@@ -1496,7 +1499,7 @@ var access_code_warning = zod.z.discriminatedUnion("warning_code", [
1496
1499
  smartthings_failed_to_set_access_code_warning,
1497
1500
  schlage_detected_duplicate,
1498
1501
  schlage_creation_outage,
1499
- salto_office_mode2,
1502
+ salto_office_mode,
1500
1503
  code_modified_external_to_seam_warning,
1501
1504
  delay_in_setting_on_device,
1502
1505
  delay_in_removing_from_device,
@@ -2145,7 +2148,7 @@ var common_acs_system_warning = zod.z.object({
2145
2148
  "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
2146
2149
  )
2147
2150
  });
2148
- var salto_ks_subscription_limit_almost_reached2 = common_acs_system_warning.extend({
2151
+ var salto_ks_subscription_limit_almost_reached3 = common_acs_system_warning.extend({
2149
2152
  warning_code: zod.z.literal("salto_ks_subscription_limit_almost_reached").describe(warning_code_description6)
2150
2153
  }).describe(
2151
2154
  "Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site to rectify the issue."
@@ -2157,13 +2160,13 @@ var time_zone_does_not_match_location = common_acs_system_warning.extend({
2157
2160
  "Indicates the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) time zone could not be determined because the reported physical location does not match the time zone configured on the physical [ACS entrances](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details)."
2158
2161
  );
2159
2162
  var acs_system_warning = zod.z.discriminatedUnion("warning_code", [
2160
- salto_ks_subscription_limit_almost_reached2,
2163
+ salto_ks_subscription_limit_almost_reached3,
2161
2164
  time_zone_does_not_match_location
2162
2165
  ]).describe(
2163
2166
  "Warning associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
2164
2167
  );
2165
2168
  zod.z.object({
2166
- salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached2.optional().nullable(),
2169
+ salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached3.optional().nullable(),
2167
2170
  time_zone_does_not_match_location: time_zone_does_not_match_location.optional().nullable()
2168
2171
  });
2169
2172
  var acs_system = zod.z.object({
@@ -3750,7 +3753,7 @@ var temperature_changed_event = device_event.extend({
3750
3753
  `);
3751
3754
  var device_name_changed_event = device_event.extend({
3752
3755
  event_type: zod.z.literal("device.name_changed"),
3753
- new_name: zod.z.string().describe("The new name of the device.")
3756
+ device_name: zod.z.string().describe("The new name of the device.")
3754
3757
  }).describe(`
3755
3758
  ---
3756
3759
  route_path: /devices
@@ -10910,20 +10913,6 @@ var openapi_default = {
10910
10913
  required: ["message", "created_at", "warning_code"],
10911
10914
  type: "object"
10912
10915
  },
10913
- {
10914
- description: "A Salto Lock displaying an unknown device type.",
10915
- properties: {
10916
- created_at: { format: "date-time", type: "string" },
10917
- message: { type: "string" },
10918
- warning_code: {
10919
- description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
10920
- enum: ["salto_unknown_device_type"],
10921
- type: "string"
10922
- }
10923
- },
10924
- required: ["message", "created_at", "warning_code"],
10925
- type: "object"
10926
- },
10927
10916
  {
10928
10917
  description: "Wyze Lock is not connected to a gateway.",
10929
10918
  properties: {
@@ -11071,7 +11060,7 @@ var openapi_default = {
11071
11060
  message: { type: "string" },
11072
11061
  warning_code: {
11073
11062
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
11074
- enum: ["salto_office_mode"],
11063
+ enum: ["salto_ks_office_mode"],
11075
11064
  type: "string"
11076
11065
  }
11077
11066
  },
@@ -11085,7 +11074,21 @@ var openapi_default = {
11085
11074
  message: { type: "string" },
11086
11075
  warning_code: {
11087
11076
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
11088
- enum: ["salto_privacy_mode"],
11077
+ enum: ["salto_ks_privacy_mode"],
11078
+ type: "string"
11079
+ }
11080
+ },
11081
+ required: ["message", "created_at", "warning_code"],
11082
+ type: "object"
11083
+ },
11084
+ {
11085
+ description: "Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.",
11086
+ properties: {
11087
+ created_at: { format: "date-time", type: "string" },
11088
+ message: { type: "string" },
11089
+ warning_code: {
11090
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
11091
+ enum: ["salto_ks_subscription_limit_almost_reached"],
11089
11092
  type: "string"
11090
11093
  }
11091
11094
  },
@@ -15230,16 +15233,16 @@ var openapi_default = {
15230
15233
  format: "uuid",
15231
15234
  type: "string"
15232
15235
  },
15236
+ device_name: {
15237
+ description: "The new name of the device.",
15238
+ type: "string"
15239
+ },
15233
15240
  event_id: {
15234
15241
  description: "ID of the event.",
15235
15242
  format: "uuid",
15236
15243
  type: "string"
15237
15244
  },
15238
15245
  event_type: { enum: ["device.name_changed"], type: "string" },
15239
- new_name: {
15240
- description: "The new name of the device.",
15241
- type: "string"
15242
- },
15243
15246
  occurred_at: {
15244
15247
  description: "Date and time at which the event occurred.",
15245
15248
  format: "date-time",
@@ -15259,7 +15262,7 @@ var openapi_default = {
15259
15262
  "device_id",
15260
15263
  "connected_account_id",
15261
15264
  "event_type",
15262
- "new_name"
15265
+ "device_name"
15263
15266
  ],
15264
15267
  type: "object",
15265
15268
  "x-route-path": "/devices"
@@ -17703,20 +17706,6 @@ var openapi_default = {
17703
17706
  required: ["message", "created_at", "warning_code"],
17704
17707
  type: "object"
17705
17708
  },
17706
- {
17707
- description: "A Salto Lock displaying an unknown device type.",
17708
- properties: {
17709
- created_at: { format: "date-time", type: "string" },
17710
- message: { type: "string" },
17711
- warning_code: {
17712
- description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
17713
- enum: ["salto_unknown_device_type"],
17714
- type: "string"
17715
- }
17716
- },
17717
- required: ["message", "created_at", "warning_code"],
17718
- type: "object"
17719
- },
17720
17709
  {
17721
17710
  description: "Wyze Lock is not connected to a gateway.",
17722
17711
  properties: {
@@ -17864,7 +17853,7 @@ var openapi_default = {
17864
17853
  message: { type: "string" },
17865
17854
  warning_code: {
17866
17855
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
17867
- enum: ["salto_office_mode"],
17856
+ enum: ["salto_ks_office_mode"],
17868
17857
  type: "string"
17869
17858
  }
17870
17859
  },
@@ -17878,7 +17867,21 @@ var openapi_default = {
17878
17867
  message: { type: "string" },
17879
17868
  warning_code: {
17880
17869
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
17881
- enum: ["salto_privacy_mode"],
17870
+ enum: ["salto_ks_privacy_mode"],
17871
+ type: "string"
17872
+ }
17873
+ },
17874
+ required: ["message", "created_at", "warning_code"],
17875
+ type: "object"
17876
+ },
17877
+ {
17878
+ description: "Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Please increase your subscription limit, or delete some users from your site to rectify this.",
17879
+ properties: {
17880
+ created_at: { format: "date-time", type: "string" },
17881
+ message: { type: "string" },
17882
+ warning_code: {
17883
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
17884
+ enum: ["salto_ks_subscription_limit_almost_reached"],
17882
17885
  type: "string"
17883
17886
  }
17884
17887
  },