@seamapi/types 1.1054.0 → 1.1056.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 (24) hide show
  1. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +3 -0
  2. package/lib/seam/connect/models/access-codes/managed-access-code.js +9 -3
  3. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  4. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +3 -0
  5. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js +9 -3
  6. package/lib/seam/connect/models/access-codes/unmanaged-access-code.js.map +1 -1
  7. package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -3
  8. package/lib/seam/connect/models/access-grants/access-method.d.ts +4 -4
  9. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +4 -4
  10. package/lib/seam/connect/models/action-attempts/assign-credential.d.ts +4 -4
  11. package/lib/seam/connect/models/devices/device-metadata.d.ts +14 -14
  12. package/lib/seam/connect/models/devices/device-metadata.js +2 -2
  13. package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
  14. package/lib/seam/connect/models/devices/device.d.ts +18 -18
  15. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +14 -14
  16. package/lib/seam/connect/openapi.js +16 -2
  17. package/lib/seam/connect/openapi.js.map +1 -1
  18. package/lib/seam/connect/route-types.d.ts +78 -45
  19. package/package.json +1 -1
  20. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +9 -3
  21. package/src/lib/seam/connect/models/access-codes/unmanaged-access-code.ts +9 -3
  22. package/src/lib/seam/connect/models/devices/device-metadata.ts +2 -2
  23. package/src/lib/seam/connect/openapi.ts +20 -2
  24. package/src/lib/seam/connect/route-types.ts +112 -45
@@ -2215,8 +2215,11 @@ export type Routes = {
2215
2215
  starts_at?: (string | null) | undefined;
2216
2216
  /** Date and time after which the time-bound access code becomes inactive. */
2217
2217
  ends_at?: (string | null) | undefined;
2218
- /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes). */
2218
+ /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
2219
+ * @deprecated Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.*/
2219
2220
  status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
2221
+ /** Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`. */
2222
+ display_status: string;
2220
2223
  /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
2221
2224
  is_backup_access_code_available: boolean;
2222
2225
  /** Indicates whether the access code is a backup code. */
@@ -2746,8 +2749,11 @@ export type Routes = {
2746
2749
  starts_at?: (string | null) | undefined;
2747
2750
  /** Date and time after which the time-bound access code becomes inactive. */
2748
2751
  ends_at?: (string | null) | undefined;
2749
- /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes). */
2752
+ /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
2753
+ * @deprecated Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.*/
2750
2754
  status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
2755
+ /** Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`. */
2756
+ display_status: string;
2751
2757
  /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
2752
2758
  is_backup_access_code_available: boolean;
2753
2759
  /** Indicates whether the access code is a backup code. */
@@ -5081,8 +5087,11 @@ export type Routes = {
5081
5087
  starts_at?: (string | null) | undefined;
5082
5088
  /** Date and time after which the time-bound access code becomes inactive. */
5083
5089
  ends_at?: (string | null) | undefined;
5084
- /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes). */
5090
+ /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
5091
+ * @deprecated Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.*/
5085
5092
  status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
5093
+ /** Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`. */
5094
+ display_status: string;
5086
5095
  /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
5087
5096
  is_backup_access_code_available: boolean;
5088
5097
  /** Indicates whether the access code is a backup code. */
@@ -5660,8 +5669,11 @@ export type Routes = {
5660
5669
  starts_at?: (string | null) | undefined;
5661
5670
  /** Date and time after which the time-bound access code becomes inactive. */
5662
5671
  ends_at?: (string | null) | undefined;
5663
- /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes). */
5672
+ /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
5673
+ * @deprecated Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.*/
5664
5674
  status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
5675
+ /** Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`. */
5676
+ display_status: string;
5665
5677
  /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
5666
5678
  is_backup_access_code_available: boolean;
5667
5679
  /** Indicates whether the access code is a backup code. */
@@ -6182,8 +6194,11 @@ export type Routes = {
6182
6194
  starts_at?: (string | null) | undefined;
6183
6195
  /** Date and time after which the time-bound access code becomes inactive. */
6184
6196
  ends_at?: (string | null) | undefined;
6185
- /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes). */
6197
+ /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
6198
+ * @deprecated Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.*/
6186
6199
  status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
6200
+ /** Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`. */
6201
+ display_status: string;
6187
6202
  /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
6188
6203
  is_backup_access_code_available: boolean;
6189
6204
  /** Indicates whether the access code is a backup code. */
@@ -6681,8 +6696,11 @@ export type Routes = {
6681
6696
  starts_at?: (string | null) | undefined;
6682
6697
  /** Date and time after which the time-bound access code becomes inactive. */
6683
6698
  ends_at?: (string | null) | undefined;
6684
- /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes). */
6699
+ /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
6700
+ * @deprecated Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.*/
6685
6701
  status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
6702
+ /** Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`. */
6703
+ display_status: string;
6686
6704
  /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
6687
6705
  is_backup_access_code_available: boolean;
6688
6706
  /** Indicates whether the access code is a backup code. */
@@ -7213,8 +7231,11 @@ export type Routes = {
7213
7231
  starts_at?: (string | null) | undefined;
7214
7232
  /** Date and time after which the time-bound access code becomes inactive. */
7215
7233
  ends_at?: (string | null) | undefined;
7216
- /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device. */
7234
+ /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device.
7235
+ * @deprecated Use `display_status` to show a person the code's state.*/
7217
7236
  status: 'set' | 'unset';
7237
+ /** Human-readable label for the code's state: `Active` or `Not active`, based on whether the code is set on the device. For display only. The wording is not stable and is not an enumeration — never compare against or branch on it. */
7238
+ display_status: string;
7218
7239
  /** Indicates that Seam cannot convert this unmanaged access code to a managed access code. Some providers do not support management of unmanaged access codes through API integrations. */
7219
7240
  cannot_be_managed?: true | undefined;
7220
7241
  /** Indicates that Seam cannot delete this unmanaged access code through the provider. If this access code needs to be deleted, it will only be possible from the manufacturer app. */
@@ -9457,8 +9478,11 @@ export type Routes = {
9457
9478
  starts_at?: (string | null) | undefined;
9458
9479
  /** Date and time after which the time-bound access code becomes inactive. */
9459
9480
  ends_at?: (string | null) | undefined;
9460
- /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device. */
9481
+ /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device.
9482
+ * @deprecated Use `display_status` to show a person the code's state.*/
9461
9483
  status: 'set' | 'unset';
9484
+ /** Human-readable label for the code's state: `Active` or `Not active`, based on whether the code is set on the device. For display only. The wording is not stable and is not an enumeration — never compare against or branch on it. */
9485
+ display_status: string;
9462
9486
  /** Indicates that Seam cannot convert this unmanaged access code to a managed access code. Some providers do not support management of unmanaged access codes through API integrations. */
9463
9487
  cannot_be_managed?: true | undefined;
9464
9488
  /** Indicates that Seam cannot delete this unmanaged access code through the provider. If this access code needs to be deleted, it will only be possible from the manufacturer app. */
@@ -9875,8 +9899,11 @@ export type Routes = {
9875
9899
  starts_at?: (string | null) | undefined;
9876
9900
  /** Date and time after which the time-bound access code becomes inactive. */
9877
9901
  ends_at?: (string | null) | undefined;
9878
- /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device. */
9902
+ /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device.
9903
+ * @deprecated Use `display_status` to show a person the code's state.*/
9879
9904
  status: 'set' | 'unset';
9905
+ /** Human-readable label for the code's state: `Active` or `Not active`, based on whether the code is set on the device. For display only. The wording is not stable and is not an enumeration — never compare against or branch on it. */
9906
+ display_status: string;
9880
9907
  /** Indicates that Seam cannot convert this unmanaged access code to a managed access code. Some providers do not support management of unmanaged access codes through API integrations. */
9881
9908
  cannot_be_managed?: true | undefined;
9882
9909
  /** Indicates that Seam cannot delete this unmanaged access code through the provider. If this access code needs to be deleted, it will only be possible from the manufacturer app. */
@@ -12802,8 +12829,8 @@ export type Routes = {
12802
12829
  userLevel?: (number | undefined) | undefined;
12803
12830
  userLevelName?: (string | undefined) | undefined;
12804
12831
  userLevelType?: (string | undefined) | undefined;
12805
- checkInTime?: (string | undefined) | undefined;
12806
- checkOutTime?: (string | undefined) | undefined;
12832
+ userLevelCheckInTime?: (string | undefined) | undefined;
12833
+ userLevelCheckOutTime?: (string | undefined) | undefined;
12807
12834
  }[] | undefined) | undefined;
12808
12835
  } | undefined;
12809
12836
  /** Metadata for a Wyze device. */
@@ -19886,8 +19913,8 @@ export type Routes = {
19886
19913
  userLevel?: (number | undefined) | undefined;
19887
19914
  userLevelName?: (string | undefined) | undefined;
19888
19915
  userLevelType?: (string | undefined) | undefined;
19889
- checkInTime?: (string | undefined) | undefined;
19890
- checkOutTime?: (string | undefined) | undefined;
19916
+ userLevelCheckInTime?: (string | undefined) | undefined;
19917
+ userLevelCheckOutTime?: (string | undefined) | undefined;
19891
19918
  }[] | undefined) | undefined;
19892
19919
  } | undefined;
19893
19920
  /** Metadata for a Wyze device. */
@@ -43773,8 +43800,8 @@ export type Routes = {
43773
43800
  userLevel?: (number | undefined) | undefined;
43774
43801
  userLevelName?: (string | undefined) | undefined;
43775
43802
  userLevelType?: (string | undefined) | undefined;
43776
- checkInTime?: (string | undefined) | undefined;
43777
- checkOutTime?: (string | undefined) | undefined;
43803
+ userLevelCheckInTime?: (string | undefined) | undefined;
43804
+ userLevelCheckOutTime?: (string | undefined) | undefined;
43778
43805
  }[] | undefined) | undefined;
43779
43806
  } | undefined;
43780
43807
  /** Metadata for a Wyze device. */
@@ -45336,8 +45363,8 @@ export type Routes = {
45336
45363
  userLevel?: (number | undefined) | undefined;
45337
45364
  userLevelName?: (string | undefined) | undefined;
45338
45365
  userLevelType?: (string | undefined) | undefined;
45339
- checkInTime?: (string | undefined) | undefined;
45340
- checkOutTime?: (string | undefined) | undefined;
45366
+ userLevelCheckInTime?: (string | undefined) | undefined;
45367
+ userLevelCheckOutTime?: (string | undefined) | undefined;
45341
45368
  }[] | undefined) | undefined;
45342
45369
  } | undefined;
45343
45370
  /** Metadata for a Wyze device. */
@@ -57251,8 +57278,8 @@ export type Routes = {
57251
57278
  userLevel?: (number | undefined) | undefined;
57252
57279
  userLevelName?: (string | undefined) | undefined;
57253
57280
  userLevelType?: (string | undefined) | undefined;
57254
- checkInTime?: (string | undefined) | undefined;
57255
- checkOutTime?: (string | undefined) | undefined;
57281
+ userLevelCheckInTime?: (string | undefined) | undefined;
57282
+ userLevelCheckOutTime?: (string | undefined) | undefined;
57256
57283
  }[] | undefined) | undefined;
57257
57284
  } | undefined;
57258
57285
  /** Metadata for a Wyze device. */
@@ -58764,8 +58791,8 @@ export type Routes = {
58764
58791
  userLevel?: (number | undefined) | undefined;
58765
58792
  userLevelName?: (string | undefined) | undefined;
58766
58793
  userLevelType?: (string | undefined) | undefined;
58767
- checkInTime?: (string | undefined) | undefined;
58768
- checkOutTime?: (string | undefined) | undefined;
58794
+ userLevelCheckInTime?: (string | undefined) | undefined;
58795
+ userLevelCheckOutTime?: (string | undefined) | undefined;
58769
58796
  }[] | undefined) | undefined;
58770
58797
  } | undefined;
58771
58798
  /** Metadata for a Wyze device. */
@@ -60300,8 +60327,8 @@ export type Routes = {
60300
60327
  userLevel?: (number | undefined) | undefined;
60301
60328
  userLevelName?: (string | undefined) | undefined;
60302
60329
  userLevelType?: (string | undefined) | undefined;
60303
- checkInTime?: (string | undefined) | undefined;
60304
- checkOutTime?: (string | undefined) | undefined;
60330
+ userLevelCheckInTime?: (string | undefined) | undefined;
60331
+ userLevelCheckOutTime?: (string | undefined) | undefined;
60305
60332
  }[] | undefined) | undefined;
60306
60333
  } | undefined;
60307
60334
  /** Metadata for a Wyze device. */
@@ -61812,8 +61839,8 @@ export type Routes = {
61812
61839
  userLevel?: (number | undefined) | undefined;
61813
61840
  userLevelName?: (string | undefined) | undefined;
61814
61841
  userLevelType?: (string | undefined) | undefined;
61815
- checkInTime?: (string | undefined) | undefined;
61816
- checkOutTime?: (string | undefined) | undefined;
61842
+ userLevelCheckInTime?: (string | undefined) | undefined;
61843
+ userLevelCheckOutTime?: (string | undefined) | undefined;
61817
61844
  }[] | undefined) | undefined;
61818
61845
  } | undefined;
61819
61846
  /** Metadata for a Wyze device. */
@@ -70538,8 +70565,8 @@ export type Routes = {
70538
70565
  userLevel?: (number | undefined) | undefined;
70539
70566
  userLevelName?: (string | undefined) | undefined;
70540
70567
  userLevelType?: (string | undefined) | undefined;
70541
- checkInTime?: (string | undefined) | undefined;
70542
- checkOutTime?: (string | undefined) | undefined;
70568
+ userLevelCheckInTime?: (string | undefined) | undefined;
70569
+ userLevelCheckOutTime?: (string | undefined) | undefined;
70543
70570
  }[] | undefined) | undefined;
70544
70571
  } | undefined;
70545
70572
  /** Metadata for a Wyze device. */
@@ -72050,8 +72077,8 @@ export type Routes = {
72050
72077
  userLevel?: (number | undefined) | undefined;
72051
72078
  userLevelName?: (string | undefined) | undefined;
72052
72079
  userLevelType?: (string | undefined) | undefined;
72053
- checkInTime?: (string | undefined) | undefined;
72054
- checkOutTime?: (string | undefined) | undefined;
72080
+ userLevelCheckInTime?: (string | undefined) | undefined;
72081
+ userLevelCheckOutTime?: (string | undefined) | undefined;
72055
72082
  }[] | undefined) | undefined;
72056
72083
  } | undefined;
72057
72084
  /** Metadata for a Wyze device. */
@@ -89450,8 +89477,8 @@ export type Routes = {
89450
89477
  userLevel?: (number | undefined) | undefined;
89451
89478
  userLevelName?: (string | undefined) | undefined;
89452
89479
  userLevelType?: (string | undefined) | undefined;
89453
- checkInTime?: (string | undefined) | undefined;
89454
- checkOutTime?: (string | undefined) | undefined;
89480
+ userLevelCheckInTime?: (string | undefined) | undefined;
89481
+ userLevelCheckOutTime?: (string | undefined) | undefined;
89455
89482
  }[] | undefined) | undefined;
89456
89483
  } | undefined;
89457
89484
  /** Metadata for a Wyze device. */
@@ -97375,8 +97402,8 @@ export type Routes = {
97375
97402
  userLevel?: (number | undefined) | undefined;
97376
97403
  userLevelName?: (string | undefined) | undefined;
97377
97404
  userLevelType?: (string | undefined) | undefined;
97378
- checkInTime?: (string | undefined) | undefined;
97379
- checkOutTime?: (string | undefined) | undefined;
97405
+ userLevelCheckInTime?: (string | undefined) | undefined;
97406
+ userLevelCheckOutTime?: (string | undefined) | undefined;
97380
97407
  }[] | undefined) | undefined;
97381
97408
  } | undefined;
97382
97409
  /** Metadata for a Wyze device. */
@@ -102519,8 +102546,8 @@ export type Routes = {
102519
102546
  userLevel?: (number | undefined) | undefined;
102520
102547
  userLevelName?: (string | undefined) | undefined;
102521
102548
  userLevelType?: (string | undefined) | undefined;
102522
- checkInTime?: (string | undefined) | undefined;
102523
- checkOutTime?: (string | undefined) | undefined;
102549
+ userLevelCheckInTime?: (string | undefined) | undefined;
102550
+ userLevelCheckOutTime?: (string | undefined) | undefined;
102524
102551
  }[] | undefined) | undefined;
102525
102552
  } | undefined;
102526
102553
  /** Metadata for a Wyze device. */
@@ -104031,8 +104058,8 @@ export type Routes = {
104031
104058
  userLevel?: (number | undefined) | undefined;
104032
104059
  userLevelName?: (string | undefined) | undefined;
104033
104060
  userLevelType?: (string | undefined) | undefined;
104034
- checkInTime?: (string | undefined) | undefined;
104035
- checkOutTime?: (string | undefined) | undefined;
104061
+ userLevelCheckInTime?: (string | undefined) | undefined;
104062
+ userLevelCheckOutTime?: (string | undefined) | undefined;
104036
104063
  }[] | undefined) | undefined;
104037
104064
  } | undefined;
104038
104065
  /** Metadata for a Wyze device. */
@@ -113741,8 +113768,8 @@ export type Routes = {
113741
113768
  userLevel?: (number | undefined) | undefined;
113742
113769
  userLevelName?: (string | undefined) | undefined;
113743
113770
  userLevelType?: (string | undefined) | undefined;
113744
- checkInTime?: (string | undefined) | undefined;
113745
- checkOutTime?: (string | undefined) | undefined;
113771
+ userLevelCheckInTime?: (string | undefined) | undefined;
113772
+ userLevelCheckOutTime?: (string | undefined) | undefined;
113746
113773
  }[] | undefined) | undefined;
113747
113774
  } | undefined;
113748
113775
  /** Metadata for a Wyze device. */
@@ -115255,8 +115282,8 @@ export type Routes = {
115255
115282
  userLevel?: (number | undefined) | undefined;
115256
115283
  userLevelName?: (string | undefined) | undefined;
115257
115284
  userLevelType?: (string | undefined) | undefined;
115258
- checkInTime?: (string | undefined) | undefined;
115259
- checkOutTime?: (string | undefined) | undefined;
115285
+ userLevelCheckInTime?: (string | undefined) | undefined;
115286
+ userLevelCheckOutTime?: (string | undefined) | undefined;
115260
115287
  }[] | undefined) | undefined;
115261
115288
  } | undefined;
115262
115289
  /** Metadata for a Wyze device. */
@@ -118106,8 +118133,8 @@ export type Routes = {
118106
118133
  userLevel?: (number | undefined) | undefined;
118107
118134
  userLevelName?: (string | undefined) | undefined;
118108
118135
  userLevelType?: (string | undefined) | undefined;
118109
- checkInTime?: (string | undefined) | undefined;
118110
- checkOutTime?: (string | undefined) | undefined;
118136
+ userLevelCheckInTime?: (string | undefined) | undefined;
118137
+ userLevelCheckOutTime?: (string | undefined) | undefined;
118111
118138
  }[] | undefined) | undefined;
118112
118139
  } | undefined;
118113
118140
  /** Metadata for a Wyze device. */
@@ -127495,8 +127522,11 @@ export type Routes = {
127495
127522
  starts_at?: (string | null) | undefined;
127496
127523
  /** Date and time after which the time-bound access code becomes inactive. */
127497
127524
  ends_at?: (string | null) | undefined;
127498
- /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device. */
127525
+ /** Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device.
127526
+ * @deprecated Use `display_status` to show a person the code's state.*/
127499
127527
  status: 'set' | 'unset';
127528
+ /** Human-readable label for the code's state: `Active` or `Not active`, based on whether the code is set on the device. For display only. The wording is not stable and is not an enumeration — never compare against or branch on it. */
127529
+ display_status: string;
127500
127530
  /** Indicates that Seam cannot convert this unmanaged access code to a managed access code. Some providers do not support management of unmanaged access codes through API integrations. */
127501
127531
  cannot_be_managed?: true | undefined;
127502
127532
  /** Indicates that Seam cannot delete this unmanaged access code through the provider. If this access code needs to be deleted, it will only be possible from the manufacturer app. */
@@ -127897,8 +127927,11 @@ export type Routes = {
127897
127927
  starts_at?: (string | null) | undefined;
127898
127928
  /** Date and time after which the time-bound access code becomes inactive. */
127899
127929
  ends_at?: (string | null) | undefined;
127900
- /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes). */
127930
+ /** Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
127931
+ * @deprecated Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.*/
127901
127932
  status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
127933
+ /** Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`. */
127934
+ display_status: string;
127902
127935
  /** Indicates whether a backup access code is available for use if the primary access code is lost or compromised. */
127903
127936
  is_backup_access_code_available: boolean;
127904
127937
  /** Indicates whether the access code is a backup code. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1054.0",
3
+ "version": "1.1056.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -568,10 +568,16 @@ export const access_code = z.object({
568
568
  .describe(
569
569
  'Date and time after which the time-bound access code becomes inactive.',
570
570
  ),
571
- status: z
572
- .enum(['setting', 'set', 'unset', 'removing', 'unknown'])
571
+ status: z.enum(['setting', 'set', 'unset', 'removing', 'unknown']).describe(`
572
+ ---
573
+ deprecated: Use \`display_status\` to show a person the code's state. To make decisions, read \`pending_mutations\`, \`errors\`, \`warnings\`, \`starts_at\`, and \`ends_at\`.
574
+ ---
575
+ Current status of the access code within the operational lifecycle. Values are \`setting\`, a transitional phase that indicates that the code is being configured or activated; \`set\`, which indicates that the code is active and operational; \`unset\`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; \`removing\`, which indicates a transitional period in which the code is being deleted or made inactive; and \`unknown\`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
576
+ `),
577
+ display_status: z
578
+ .string()
573
579
  .describe(
574
- 'Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).',
580
+ 'Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.',
575
581
  ),
576
582
  is_backup_access_code_available: z
577
583
  .boolean()
@@ -24,10 +24,16 @@ export const unmanaged_access_code = access_code
24
24
  is_managed: z
25
25
  .literal(false)
26
26
  .describe('Indicates that Seam does not manage the access code.'),
27
- status: z
28
- .enum(['set', 'unset'])
27
+ status: z.enum(['set', 'unset']).describe(`
28
+ ---
29
+ deprecated: Use \`display_status\` to show a person the code's state.
30
+ ---
31
+ Current status of the access code within the operational lifecycle. \`set\` indicates that the code is active and operational. \`unset\` indicates that the code exists on the provider but is not usable on the device.
32
+ `),
33
+ display_status: z
34
+ .string()
29
35
  .describe(
30
- 'Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device.',
36
+ "Human-readable label for the code's state: `Active` or `Not active`, based on whether the code is set on the device. For display only. The wording is not stable and is not an enumeration — never compare against or branch on it.",
31
37
  ),
32
38
  cannot_be_managed: z
33
39
  .literal(true)
@@ -804,8 +804,8 @@ export const device_metadata = z
804
804
  userLevel: z.number().optional(),
805
805
  userLevelName: z.string().optional(),
806
806
  userLevelType: z.string().optional(),
807
- checkInTime: z.string().optional(),
808
- checkOutTime: z.string().optional(),
807
+ userLevelCheckInTime: z.string().optional(),
808
+ userLevelCheckOutTime: z.string().optional(),
809
809
  })
810
810
  .partial(),
811
811
  )
@@ -35,6 +35,11 @@ const openapi: OpenAPISpec = {
35
35
  format: 'uuid',
36
36
  type: 'string',
37
37
  },
38
+ display_status: {
39
+ description:
40
+ 'Human-readable label for where this access code sits in its lifecycle, for example `Active`, `Issuing`, or `Expired`. For display only. The wording is not stable and is not an enumeration — it may change at any time, so never compare against or branch on it. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.',
41
+ type: 'string',
42
+ },
38
43
  dormakaba_oracode_metadata: {
39
44
  description:
40
45
  'Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices.',
@@ -1381,10 +1386,13 @@ const openapi: OpenAPISpec = {
1381
1386
  type: 'string',
1382
1387
  },
1383
1388
  status: {
1389
+ deprecated: true,
1384
1390
  description:
1385
1391
  'Current status of the access code within the operational lifecycle. Values are `setting`, a transitional phase that indicates that the code is being configured or activated; `set`, which indicates that the code is active and operational; `unset`, which indicates a deactivated or unused state, either before activation or after deliberate deactivation; `removing`, which indicates a transitional period in which the code is being deleted or made inactive; and `unknown`, which indicates an indeterminate state, due to reasons such as system errors or incomplete data, that highlights a potential need for system review or troubleshooting. See also [Lifecycle of Access Codes](https://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).',
1386
1392
  enum: ['setting', 'set', 'unset', 'removing', 'unknown'],
1387
1393
  type: 'string',
1394
+ 'x-deprecated':
1395
+ "Use `display_status` to show a person the code's state. To make decisions, read `pending_mutations`, `errors`, `warnings`, `starts_at`, and `ends_at`.",
1388
1396
  },
1389
1397
  type: {
1390
1398
  description:
@@ -1765,6 +1773,7 @@ const openapi: OpenAPISpec = {
1765
1773
  'warnings',
1766
1774
  'is_managed',
1767
1775
  'status',
1776
+ 'display_status',
1768
1777
  'is_backup_access_code_available',
1769
1778
  'is_external_modification_allowed',
1770
1779
  'is_one_time_use',
@@ -14755,9 +14764,9 @@ const openapi: OpenAPISpec = {
14755
14764
  "User levels for a dormakaba Oracode Homeowner's Portal device.",
14756
14765
  items: {
14757
14766
  properties: {
14758
- checkInTime: { type: 'string' },
14759
- checkOutTime: { type: 'string' },
14760
14767
  userLevel: { format: 'float', type: 'number' },
14768
+ userLevelCheckInTime: { type: 'string' },
14769
+ userLevelCheckOutTime: { type: 'string' },
14761
14770
  userLevelName: { type: 'string' },
14762
14771
  userLevelType: { type: 'string' },
14763
14772
  },
@@ -31480,6 +31489,11 @@ const openapi: OpenAPISpec = {
31480
31489
  format: 'uuid',
31481
31490
  type: 'string',
31482
31491
  },
31492
+ display_status: {
31493
+ description:
31494
+ "Human-readable label for the code's state: `Active` or `Not active`, based on whether the code is set on the device. For display only. The wording is not stable and is not an enumeration — never compare against or branch on it.",
31495
+ type: 'string',
31496
+ },
31483
31497
  dormakaba_oracode_metadata: {
31484
31498
  description:
31485
31499
  'Metadata for a dormakaba Oracode unmanaged access code. Only present for unmanaged access codes from dormakaba Oracode devices.',
@@ -32515,10 +32529,13 @@ const openapi: OpenAPISpec = {
32515
32529
  type: 'string',
32516
32530
  },
32517
32531
  status: {
32532
+ deprecated: true,
32518
32533
  description:
32519
32534
  'Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device.',
32520
32535
  enum: ['set', 'unset'],
32521
32536
  type: 'string',
32537
+ 'x-deprecated':
32538
+ "Use `display_status` to show a person the code's state.",
32522
32539
  },
32523
32540
  type: {
32524
32541
  description:
@@ -32898,6 +32915,7 @@ const openapi: OpenAPISpec = {
32898
32915
  'warnings',
32899
32916
  'is_managed',
32900
32917
  'status',
32918
+ 'display_status',
32901
32919
  ],
32902
32920
  type: 'object',
32903
32921
  'x-route-path': '/access_codes/unmanaged',