@seamapi/types 1.951.0 → 1.953.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 (31) hide show
  1. package/dist/connect.cjs +156 -5
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +343 -4
  4. package/dist/index.cjs +156 -5
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-entrance.d.ts +49 -4
  7. package/lib/seam/connect/models/acs/acs-entrance.js +7 -0
  8. package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
  9. package/lib/seam/connect/models/acs/metadata/salto.d.ts +2 -2
  10. package/lib/seam/connect/models/devices/device.d.ts +58 -0
  11. package/lib/seam/connect/models/devices/device.js +11 -0
  12. package/lib/seam/connect/models/devices/device.js.map +1 -1
  13. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -0
  14. package/lib/seam/connect/models/events/common.d.ts +2 -0
  15. package/lib/seam/connect/models/events/common.js +10 -0
  16. package/lib/seam/connect/models/events/common.js.map +1 -1
  17. package/lib/seam/connect/models/events/devices.d.ts +36 -0
  18. package/lib/seam/connect/models/events/devices.js +10 -1
  19. package/lib/seam/connect/models/events/devices.js.map +1 -1
  20. package/lib/seam/connect/models/events/seam-event.d.ts +18 -0
  21. package/lib/seam/connect/models/phones/phone-session.d.ts +100 -18
  22. package/lib/seam/connect/openapi.js +119 -2
  23. package/lib/seam/connect/openapi.js.map +1 -1
  24. package/lib/seam/connect/route-types.d.ts +245 -0
  25. package/package.json +1 -1
  26. package/src/lib/seam/connect/models/acs/acs-entrance.ts +10 -0
  27. package/src/lib/seam/connect/models/devices/device.ts +12 -0
  28. package/src/lib/seam/connect/models/events/common.ts +15 -0
  29. package/src/lib/seam/connect/models/events/devices.ts +12 -0
  30. package/src/lib/seam/connect/openapi.ts +138 -2
  31. package/src/lib/seam/connect/route-types.ts +308 -0
package/dist/connect.cjs CHANGED
@@ -1647,10 +1647,19 @@ var salto_ks_privacy_mode = common_device_warning.extend({
1647
1647
  warning_code: zod.z.literal("salto_ks_privacy_mode").describe(warning_code_description2)
1648
1648
  }).describe(`
1649
1649
  ---
1650
+ deprecated: Use \`privacy_mode\` instead.
1650
1651
  variant_group_key: access_codes
1651
1652
  ---
1652
1653
  Indicates that the Salto KS lock is in Privacy Mode. Access Codes will not unlock doors.
1653
1654
  `);
1655
+ var privacy_mode = common_device_warning.extend({
1656
+ warning_code: zod.z.literal("privacy_mode").describe(warning_code_description2)
1657
+ }).describe(`
1658
+ ---
1659
+ variant_group_key: access_codes
1660
+ ---
1661
+ Indicates that the lock is in Privacy Mode. Access codes and remote unlock are blocked until Privacy Mode is disabled.
1662
+ `);
1654
1663
  var salto_ks_subscription_limit_almost_reached2 = common_device_warning.extend(
1655
1664
  {
1656
1665
  warning_code: zod.z.literal("salto_ks_subscription_limit_almost_reached").describe(warning_code_description2)
@@ -1844,6 +1853,7 @@ var device_warning = zod.z.discriminatedUnion("warning_code", [
1844
1853
  device_has_flaky_connection,
1845
1854
  salto_ks_office_mode,
1846
1855
  salto_ks_privacy_mode,
1856
+ privacy_mode,
1847
1857
  salto_ks_subscription_limit_almost_reached2,
1848
1858
  salto_ks_lock_access_code_support_removed,
1849
1859
  unknown_issue_with_phone,
@@ -1877,6 +1887,7 @@ zod.z.object({
1877
1887
  scheduled_maintenance_window: scheduled_maintenance_window2.optional().nullable(),
1878
1888
  salto_ks_office_mode: salto_ks_office_mode.optional().nullable(),
1879
1889
  salto_ks_privacy_mode: salto_ks_privacy_mode.optional().nullable(),
1890
+ privacy_mode: privacy_mode.optional().nullable(),
1880
1891
  salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached2.optional().nullable(),
1881
1892
  salto_ks_lock_access_code_support_removed: salto_ks_lock_access_code_support_removed.optional().nullable(),
1882
1893
  unknown_issue_with_phone: unknown_issue_with_phone.optional().nullable(),
@@ -4002,6 +4013,11 @@ var entrance_setup_required = common_acs_entrance_warning.extend({
4002
4013
  );
4003
4014
  var salto_ks_privacy_mode2 = common_acs_entrance_warning.extend({
4004
4015
  warning_code: zod.z.literal("salto_ks_privacy_mode").describe(warning_code_description8)
4016
+ }).describe(
4017
+ "deprecated: Use `privacy_mode` instead. Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access."
4018
+ );
4019
+ var privacy_mode2 = common_acs_entrance_warning.extend({
4020
+ warning_code: zod.z.literal("privacy_mode").describe(warning_code_description8)
4005
4021
  }).describe(
4006
4022
  "Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access."
4007
4023
  );
@@ -4009,7 +4025,8 @@ var acs_entrance_warning = zod.z.discriminatedUnion("warning_code", [
4009
4025
  salto_ks_entrance_access_code_support_removed,
4010
4026
  entrance_shares_zone,
4011
4027
  entrance_setup_required,
4012
- salto_ks_privacy_mode2
4028
+ salto_ks_privacy_mode2,
4029
+ privacy_mode2
4013
4030
  ]).describe(
4014
4031
  "Warning associated with the [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details)."
4015
4032
  );
@@ -4017,7 +4034,8 @@ zod.z.object({
4017
4034
  salto_ks_entrance_access_code_support_removed: salto_ks_entrance_access_code_support_removed.optional().nullable(),
4018
4035
  entrance_shares_zone: entrance_shares_zone.optional().nullable(),
4019
4036
  entrance_setup_required: entrance_setup_required.optional().nullable(),
4020
- salto_ks_privacy_mode: salto_ks_privacy_mode2.optional().nullable()
4037
+ salto_ks_privacy_mode: salto_ks_privacy_mode2.optional().nullable(),
4038
+ privacy_mode: privacy_mode2.optional().nullable()
4021
4039
  });
4022
4040
  var acs_entrance_capability_flags = zod.z.object({
4023
4041
  can_unlock_with_mobile_key: zod.z.boolean().optional().describe(
@@ -5598,6 +5616,16 @@ var common_event_warning = zod.z.object({
5598
5616
  }).describe(
5599
5617
  "Warning associated with the resource, including the warning code, message, and creation timestamp."
5600
5618
  );
5619
+ var lock_access_denied_reason = zod.z.enum([
5620
+ "unknown_code",
5621
+ "expired_code",
5622
+ "blocklisted_code",
5623
+ "too_many_attempts",
5624
+ "blocked_by_privacy_mode",
5625
+ "credential_error"
5626
+ ]).describe(
5627
+ "Normalized reason a lock denied access. Provider-agnostic; not all providers report every value."
5628
+ );
5601
5629
 
5602
5630
  // src/lib/seam/connect/models/events/access-codes.ts
5603
5631
  var access_code_event = common_event.extend({
@@ -6764,7 +6792,13 @@ var lock_access_denied_event = device_event.extend({
6764
6792
  ---
6765
6793
  ID of the ACS entrance associated with the access-denied event.
6766
6794
  `),
6767
- device_id: zod.z.string().uuid().optional().describe("ID of the affected device.")
6795
+ device_id: zod.z.string().uuid().optional().describe("ID of the affected device."),
6796
+ reason: zod.z.object({
6797
+ reason_code: lock_access_denied_reason,
6798
+ message: zod.z.string().describe("Human-readable explanation of why access was denied.")
6799
+ }).optional().describe(
6800
+ "Why access was denied, when the provider reports a determinable cause. Omitted when unknown."
6801
+ )
6768
6802
  }).describe(`
6769
6803
  ---
6770
6804
  route_path: /locks
@@ -11389,7 +11423,7 @@ var openapi = {
11389
11423
  type: "object"
11390
11424
  },
11391
11425
  {
11392
- description: "Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.",
11426
+ description: "deprecated: Use `privacy_mode` instead. Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.",
11393
11427
  properties: {
11394
11428
  created_at: {
11395
11429
  description: "Date and time at which Seam created the warning.",
@@ -11408,6 +11442,27 @@ var openapi = {
11408
11442
  },
11409
11443
  required: ["created_at", "message", "warning_code"],
11410
11444
  type: "object"
11445
+ },
11446
+ {
11447
+ description: "Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.",
11448
+ properties: {
11449
+ created_at: {
11450
+ description: "Date and time at which Seam created the warning.",
11451
+ format: "date-time",
11452
+ type: "string"
11453
+ },
11454
+ message: {
11455
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
11456
+ type: "string"
11457
+ },
11458
+ warning_code: {
11459
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
11460
+ enum: ["privacy_mode"],
11461
+ type: "string"
11462
+ }
11463
+ },
11464
+ required: ["created_at", "message", "warning_code"],
11465
+ type: "object"
11411
11466
  }
11412
11467
  ]
11413
11468
  },
@@ -22502,6 +22557,7 @@ var openapi = {
22502
22557
  "x-variant-group-key": "access_codes"
22503
22558
  },
22504
22559
  {
22560
+ deprecated: true,
22505
22561
  description: "Indicates that the Salto KS lock is in Privacy Mode. Access Codes will not unlock doors.",
22506
22562
  properties: {
22507
22563
  created_at: {
@@ -22521,6 +22577,29 @@ var openapi = {
22521
22577
  },
22522
22578
  required: ["message", "created_at", "warning_code"],
22523
22579
  type: "object",
22580
+ "x-deprecated": "Use `privacy_mode` instead.",
22581
+ "x-variant-group-key": "access_codes"
22582
+ },
22583
+ {
22584
+ description: "Indicates that the lock is in Privacy Mode. Access codes and remote unlock are blocked until Privacy Mode is disabled.",
22585
+ properties: {
22586
+ created_at: {
22587
+ description: "Date and time at which Seam created the warning.",
22588
+ format: "date-time",
22589
+ type: "string"
22590
+ },
22591
+ message: {
22592
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
22593
+ type: "string"
22594
+ },
22595
+ warning_code: {
22596
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
22597
+ enum: ["privacy_mode"],
22598
+ type: "string"
22599
+ }
22600
+ },
22601
+ required: ["message", "created_at", "warning_code"],
22602
+ type: "object",
22524
22603
  "x-variant-group-key": "access_codes"
22525
22604
  },
22526
22605
  {
@@ -30972,6 +31051,29 @@ var openapi = {
30972
31051
  format: "date-time",
30973
31052
  type: "string"
30974
31053
  },
31054
+ reason: {
31055
+ description: "Why access was denied, when the provider reports a determinable cause. Omitted when unknown.",
31056
+ properties: {
31057
+ message: {
31058
+ description: "Human-readable explanation of why access was denied.",
31059
+ type: "string"
31060
+ },
31061
+ reason_code: {
31062
+ description: "Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.",
31063
+ enum: [
31064
+ "unknown_code",
31065
+ "expired_code",
31066
+ "blocklisted_code",
31067
+ "too_many_attempts",
31068
+ "blocked_by_privacy_mode",
31069
+ "credential_error"
31070
+ ],
31071
+ type: "string"
31072
+ }
31073
+ },
31074
+ required: ["reason_code", "message"],
31075
+ type: "object"
31076
+ },
30975
31077
  user_identity_id: {
30976
31078
  description: "\n undocumented: Unreleased.\n ---\n ID of the user identity associated with the access-denied event.\n ",
30977
31079
  format: "uuid",
@@ -32954,7 +33056,7 @@ var openapi = {
32954
33056
  type: "object"
32955
33057
  },
32956
33058
  {
32957
- description: "Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.",
33059
+ description: "deprecated: Use `privacy_mode` instead. Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.",
32958
33060
  properties: {
32959
33061
  created_at: {
32960
33062
  description: "Date and time at which Seam created the warning.",
@@ -32977,6 +33079,31 @@ var openapi = {
32977
33079
  "warning_code"
32978
33080
  ],
32979
33081
  type: "object"
33082
+ },
33083
+ {
33084
+ description: "Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access.",
33085
+ properties: {
33086
+ created_at: {
33087
+ description: "Date and time at which Seam created the warning.",
33088
+ format: "date-time",
33089
+ type: "string"
33090
+ },
33091
+ message: {
33092
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
33093
+ type: "string"
33094
+ },
33095
+ warning_code: {
33096
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
33097
+ enum: ["privacy_mode"],
33098
+ type: "string"
33099
+ }
33100
+ },
33101
+ required: [
33102
+ "created_at",
33103
+ "message",
33104
+ "warning_code"
33105
+ ],
33106
+ type: "object"
32980
33107
  }
32981
33108
  ]
32982
33109
  },
@@ -37993,6 +38120,7 @@ var openapi = {
37993
38120
  "x-variant-group-key": "access_codes"
37994
38121
  },
37995
38122
  {
38123
+ deprecated: true,
37996
38124
  description: "Indicates that the Salto KS lock is in Privacy Mode. Access Codes will not unlock doors.",
37997
38125
  properties: {
37998
38126
  created_at: {
@@ -38012,6 +38140,29 @@ var openapi = {
38012
38140
  },
38013
38141
  required: ["message", "created_at", "warning_code"],
38014
38142
  type: "object",
38143
+ "x-deprecated": "Use `privacy_mode` instead.",
38144
+ "x-variant-group-key": "access_codes"
38145
+ },
38146
+ {
38147
+ description: "Indicates that the lock is in Privacy Mode. Access codes and remote unlock are blocked until Privacy Mode is disabled.",
38148
+ properties: {
38149
+ created_at: {
38150
+ description: "Date and time at which Seam created the warning.",
38151
+ format: "date-time",
38152
+ type: "string"
38153
+ },
38154
+ message: {
38155
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
38156
+ type: "string"
38157
+ },
38158
+ warning_code: {
38159
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
38160
+ enum: ["privacy_mode"],
38161
+ type: "string"
38162
+ }
38163
+ },
38164
+ required: ["message", "created_at", "warning_code"],
38165
+ type: "object",
38015
38166
  "x-variant-group-key": "access_codes"
38016
38167
  },
38017
38168
  {