@seamapi/types 1.361.1 → 1.363.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({
@@ -3137,6 +3140,31 @@ var acs_encoder_events = [
3137
3140
  acs_encoder_added_event,
3138
3141
  acs_encoder_removed_event
3139
3142
  ];
3143
+ var acs_entrance_event = common_acs_event.extend({
3144
+ acs_entrance_id: zod.z.string().uuid()
3145
+ }).describe(
3146
+ "ID of the [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details)."
3147
+ );
3148
+ var acs_entrance_added_event = acs_entrance_event.extend({
3149
+ event_type: zod.z.literal("acs_entrance.added")
3150
+ }).describe(`
3151
+ ---
3152
+ route_path: /acs/entrances
3153
+ ---
3154
+ An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was added.
3155
+ `);
3156
+ var acs_entrance_removed_event = acs_entrance_event.extend({
3157
+ event_type: zod.z.literal("acs_entrance.removed")
3158
+ }).describe(`
3159
+ ---
3160
+ route_path: /acs/entrances
3161
+ ---
3162
+ An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was removed.
3163
+ `);
3164
+ var acs_entrance_events = [
3165
+ acs_entrance_added_event,
3166
+ acs_entrance_removed_event
3167
+ ];
3140
3168
  var acs_system_event = common_acs_event.extend({});
3141
3169
  var acs_system_connected_event = acs_system_event.extend({
3142
3170
  event_type: zod.z.literal("acs_system.connected")
@@ -3188,7 +3216,8 @@ var acs_events = [
3188
3216
  ...acs_credential_events,
3189
3217
  ...acs_user_events,
3190
3218
  ...acs_encoder_events,
3191
- ...acs_access_group_events
3219
+ ...acs_access_group_events,
3220
+ ...acs_entrance_events
3192
3221
  ];
3193
3222
  var action_attempt_event = common_event.extend({
3194
3223
  action_attempt_id: zod.z.string().uuid().describe(
@@ -10910,20 +10939,6 @@ var openapi_default = {
10910
10939
  required: ["message", "created_at", "warning_code"],
10911
10940
  type: "object"
10912
10941
  },
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
10942
  {
10928
10943
  description: "Wyze Lock is not connected to a gateway.",
10929
10944
  properties: {
@@ -11071,7 +11086,7 @@ var openapi_default = {
11071
11086
  message: { type: "string" },
11072
11087
  warning_code: {
11073
11088
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
11074
- enum: ["salto_office_mode"],
11089
+ enum: ["salto_ks_office_mode"],
11075
11090
  type: "string"
11076
11091
  }
11077
11092
  },
@@ -11085,7 +11100,21 @@ var openapi_default = {
11085
11100
  message: { type: "string" },
11086
11101
  warning_code: {
11087
11102
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
11088
- enum: ["salto_privacy_mode"],
11103
+ enum: ["salto_ks_privacy_mode"],
11104
+ type: "string"
11105
+ }
11106
+ },
11107
+ required: ["message", "created_at", "warning_code"],
11108
+ type: "object"
11109
+ },
11110
+ {
11111
+ 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.",
11112
+ properties: {
11113
+ created_at: { format: "date-time", type: "string" },
11114
+ message: { type: "string" },
11115
+ warning_code: {
11116
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
11117
+ enum: ["salto_ks_subscription_limit_almost_reached"],
11089
11118
  type: "string"
11090
11119
  }
11091
11120
  },
@@ -12710,6 +12739,102 @@ var openapi_default = {
12710
12739
  type: "object",
12711
12740
  "x-route-path": "/acs/access_groups"
12712
12741
  },
12742
+ {
12743
+ description: "An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was added.",
12744
+ properties: {
12745
+ acs_entrance_id: { format: "uuid", type: "string" },
12746
+ acs_system_id: {
12747
+ description: "ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).",
12748
+ format: "uuid",
12749
+ type: "string"
12750
+ },
12751
+ connected_account_id: {
12752
+ description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
12753
+ format: "uuid",
12754
+ type: "string"
12755
+ },
12756
+ created_at: {
12757
+ description: "Date and time at which the event was created.",
12758
+ format: "date-time",
12759
+ type: "string"
12760
+ },
12761
+ event_id: {
12762
+ description: "ID of the event.",
12763
+ format: "uuid",
12764
+ type: "string"
12765
+ },
12766
+ event_type: { enum: ["acs_entrance.added"], type: "string" },
12767
+ occurred_at: {
12768
+ description: "Date and time at which the event occurred.",
12769
+ format: "date-time",
12770
+ type: "string"
12771
+ },
12772
+ workspace_id: {
12773
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).",
12774
+ format: "uuid",
12775
+ type: "string"
12776
+ }
12777
+ },
12778
+ required: [
12779
+ "event_id",
12780
+ "workspace_id",
12781
+ "created_at",
12782
+ "occurred_at",
12783
+ "acs_system_id",
12784
+ "acs_entrance_id",
12785
+ "event_type"
12786
+ ],
12787
+ type: "object",
12788
+ "x-route-path": "/acs/entrances"
12789
+ },
12790
+ {
12791
+ description: "An [ACS entrance](https://docs.seam.co/latest/capability-guides/retrieving-entrance-details) was removed.",
12792
+ properties: {
12793
+ acs_entrance_id: { format: "uuid", type: "string" },
12794
+ acs_system_id: {
12795
+ description: "ID of the [ACS system](https://docs.seam.co/latest/capability-guides/access-systems).",
12796
+ format: "uuid",
12797
+ type: "string"
12798
+ },
12799
+ connected_account_id: {
12800
+ description: "ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
12801
+ format: "uuid",
12802
+ type: "string"
12803
+ },
12804
+ created_at: {
12805
+ description: "Date and time at which the event was created.",
12806
+ format: "date-time",
12807
+ type: "string"
12808
+ },
12809
+ event_id: {
12810
+ description: "ID of the event.",
12811
+ format: "uuid",
12812
+ type: "string"
12813
+ },
12814
+ event_type: { enum: ["acs_entrance.removed"], type: "string" },
12815
+ occurred_at: {
12816
+ description: "Date and time at which the event occurred.",
12817
+ format: "date-time",
12818
+ type: "string"
12819
+ },
12820
+ workspace_id: {
12821
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces).",
12822
+ format: "uuid",
12823
+ type: "string"
12824
+ }
12825
+ },
12826
+ required: [
12827
+ "event_id",
12828
+ "workspace_id",
12829
+ "created_at",
12830
+ "occurred_at",
12831
+ "acs_system_id",
12832
+ "acs_entrance_id",
12833
+ "event_type"
12834
+ ],
12835
+ type: "object",
12836
+ "x-route-path": "/acs/entrances"
12837
+ },
12713
12838
  {
12714
12839
  description: "A [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) was deleted.",
12715
12840
  properties: {
@@ -17703,20 +17828,6 @@ var openapi_default = {
17703
17828
  required: ["message", "created_at", "warning_code"],
17704
17829
  type: "object"
17705
17830
  },
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
17831
  {
17721
17832
  description: "Wyze Lock is not connected to a gateway.",
17722
17833
  properties: {
@@ -17864,7 +17975,7 @@ var openapi_default = {
17864
17975
  message: { type: "string" },
17865
17976
  warning_code: {
17866
17977
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
17867
- enum: ["salto_office_mode"],
17978
+ enum: ["salto_ks_office_mode"],
17868
17979
  type: "string"
17869
17980
  }
17870
17981
  },
@@ -17878,7 +17989,21 @@ var openapi_default = {
17878
17989
  message: { type: "string" },
17879
17990
  warning_code: {
17880
17991
  description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
17881
- enum: ["salto_privacy_mode"],
17992
+ enum: ["salto_ks_privacy_mode"],
17993
+ type: "string"
17994
+ }
17995
+ },
17996
+ required: ["message", "created_at", "warning_code"],
17997
+ type: "object"
17998
+ },
17999
+ {
18000
+ 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.",
18001
+ properties: {
18002
+ created_at: { format: "date-time", type: "string" },
18003
+ message: { type: "string" },
18004
+ warning_code: {
18005
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
18006
+ enum: ["salto_ks_subscription_limit_almost_reached"],
17882
18007
  type: "string"
17883
18008
  }
17884
18009
  },
@@ -25292,6 +25417,8 @@ var openapi_default = {
25292
25417
  "acs_encoder.added",
25293
25418
  "acs_encoder.removed",
25294
25419
  "acs_access_group.deleted",
25420
+ "acs_entrance.added",
25421
+ "acs_entrance.removed",
25295
25422
  "client_session.deleted",
25296
25423
  "connected_account.connected",
25297
25424
  "connected_account.created",
@@ -25374,6 +25501,8 @@ var openapi_default = {
25374
25501
  "acs_encoder.added",
25375
25502
  "acs_encoder.removed",
25376
25503
  "acs_access_group.deleted",
25504
+ "acs_entrance.added",
25505
+ "acs_entrance.removed",
25377
25506
  "client_session.deleted",
25378
25507
  "connected_account.connected",
25379
25508
  "connected_account.created",