@seamapi/types 1.358.0 → 1.360.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 (38) hide show
  1. package/dist/connect.cjs +532 -11
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +2726 -1075
  4. package/lib/seam/connect/model-types.d.ts +1 -1
  5. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +100 -0
  6. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +100 -0
  7. package/lib/seam/connect/models/acs/acs-access-group.d.ts +14 -14
  8. package/lib/seam/connect/models/acs/acs-credential.d.ts +74 -74
  9. package/lib/seam/connect/models/acs/acs-encoder.d.ts +8 -8
  10. package/lib/seam/connect/models/acs/acs-system.d.ts +72 -72
  11. package/lib/seam/connect/models/acs/acs-user.d.ts +104 -104
  12. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +168 -168
  13. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +72 -72
  14. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +96 -96
  15. package/lib/seam/connect/models/connect-webviews/connect-webview.d.ts +2 -2
  16. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +634 -21
  17. package/lib/seam/connect/models/connected-accounts/connected-account.js +56 -0
  18. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  19. package/lib/seam/connect/models/devices/device-metadata.d.ts +24 -24
  20. package/lib/seam/connect/models/devices/device.d.ts +146 -46
  21. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +127 -27
  22. package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
  23. package/lib/seam/connect/models/events/connect-webviews.d.ts +4 -4
  24. package/lib/seam/connect/models/events/connected-accounts.d.ts +28 -28
  25. package/lib/seam/connect/models/events/devices.d.ts +188 -128
  26. package/lib/seam/connect/models/events/devices.js +10 -0
  27. package/lib/seam/connect/models/events/devices.js.map +1 -1
  28. package/lib/seam/connect/models/events/seam-event.d.ts +144 -115
  29. package/lib/seam/connect/openapi.d.ts +482 -4
  30. package/lib/seam/connect/openapi.js +469 -2
  31. package/lib/seam/connect/openapi.js.map +1 -1
  32. package/lib/seam/connect/route-types.d.ts +601 -2
  33. package/package.json +2 -2
  34. package/src/lib/seam/connect/model-types.ts +0 -2
  35. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +77 -2
  36. package/src/lib/seam/connect/models/events/devices.ts +13 -0
  37. package/src/lib/seam/connect/openapi.ts +502 -2
  38. package/src/lib/seam/connect/route-types.ts +633 -0
@@ -1,12 +1,20 @@
1
1
  import { z } from 'zod';
2
2
  import { custom_metadata } from '../custom-metadata.js';
3
3
  const common_connected_account_error = z.object({
4
+ created_at: z
5
+ .string()
6
+ .datetime()
7
+ .describe('Date and time at which Seam created the error.'),
4
8
  message: z.string(),
5
9
  is_connected_account_error: z.literal(true),
6
10
  });
7
11
  const error_code_description = 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.';
8
12
  const warning_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
9
13
  const common_connected_account_warning = z.object({
14
+ created_at: z
15
+ .string()
16
+ .datetime()
17
+ .describe('Date and time at which Seam created the warning.'),
10
18
  message: z.string(),
11
19
  });
12
20
  export const account_disconnected = common_connected_account_error
@@ -23,10 +31,33 @@ export const invalid_credentials = common_connected_account_error
23
31
  .describe(error_code_description),
24
32
  })
25
33
  .describe('Credentials provided were invalid.');
34
+ export const salto_ks_subscription_limit_exceeded = common_connected_account_error
35
+ .extend({
36
+ error_code: z
37
+ .literal('salto_ks_subscription_limit_exceeded')
38
+ .describe(error_code_description),
39
+ salto_ks_metadata: z.object({
40
+ sites: z.array(z.object({
41
+ site_id: z.string(),
42
+ site_name: z.string(),
43
+ subscribed_site_user_count: z.number().int().min(0),
44
+ site_user_subscription_limit: z.number().int().min(0),
45
+ })),
46
+ }),
47
+ })
48
+ .describe('Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.');
26
49
  export const connected_account_error = z.discriminatedUnion('error_code', [
27
50
  account_disconnected,
28
51
  invalid_credentials,
52
+ salto_ks_subscription_limit_exceeded,
29
53
  ]);
54
+ const connected_account_error_map = z.object({
55
+ account_disconnected: account_disconnected.nullable().optional(),
56
+ invalid_credentials: invalid_credentials.nullable().optional(),
57
+ salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
58
+ .nullable()
59
+ .optional(),
60
+ });
30
61
  export const unknown_issue_with_connected_account = common_connected_account_warning
31
62
  .extend({
32
63
  warning_code: z
@@ -42,12 +73,37 @@ const scheduled_maintenance_window = common_connected_account_warning
42
73
  .describe(warning_code_description),
43
74
  })
44
75
  .describe('Scheduled downtime for account planned.');
76
+ const salto_ks_subscription_limit_almost_reached = common_connected_account_warning
77
+ .extend({
78
+ warning_code: z
79
+ .literal('salto_ks_subscription_limit_almost_reached')
80
+ .describe(warning_code_description),
81
+ salto_ks_metadata: z.object({
82
+ sites: z.array(z.object({
83
+ site_id: z.string(),
84
+ site_name: z.string(),
85
+ site_user_subscription_limit: z.number().int().min(0),
86
+ subscribed_site_user_count: z.number().int().min(0),
87
+ })),
88
+ }),
89
+ })
90
+ .describe('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.');
45
91
  const connected_account_warning = z
46
92
  .discriminatedUnion('warning_code', [
47
93
  scheduled_maintenance_window,
48
94
  unknown_issue_with_connected_account,
95
+ salto_ks_subscription_limit_almost_reached,
49
96
  ])
50
97
  .describe('Warning associated with the `connected_account`.');
98
+ const connected_account_warning_map = z.object({
99
+ scheduled_maintenance_window: scheduled_maintenance_window
100
+ .nullable()
101
+ .optional(),
102
+ unknown_issue_with_connected_account: unknown_issue_with_connected_account
103
+ .nullable()
104
+ .optional(),
105
+ salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional(),
106
+ });
51
107
  export const connected_account = z.object({
52
108
  connected_account_id: z.string().uuid().optional(),
53
109
  created_at: z.string().datetime().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5C,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAC1B,oGAAoG,CAAA;AAEtG,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,8BAA8B;KAC/D,MAAM,CAAC;IACN,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,sBAAsB,CAAC;SAC/B,QAAQ,CAAC,sBAAsB,CAAC;CACpC,CAAC;KACD,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAEvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,8BAA8B;KAC9D,MAAM,CAAC;IACN,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,qBAAqB,CAAC;SAC9B,QAAQ,CAAC,sBAAsB,CAAC;CACpC,CAAC;KACD,QAAQ,CAAC,oCAAoC,CAAC,CAAA;AAEjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,kBAAkB,CAAC,YAAY,EAAE;IACxE,oBAAoB;IACpB,mBAAmB;CACpB,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,oCAAoC,GAC/C,gCAAgC;KAC7B,MAAM,CAAC;IACN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AAC,KAAK,CAAC,uBAAuB,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAC5C,eAAe;IACf,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
1
+ {"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5C,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAC1B,oGAAoG,CAAA;AAEtG,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,8BAA8B;KAC/D,MAAM,CAAC;IACN,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,sBAAsB,CAAC;SAC/B,QAAQ,CAAC,sBAAsB,CAAC;CACpC,CAAC;KACD,QAAQ,CAAC,0BAA0B,CAAC,CAAA;AAEvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,8BAA8B;KAC9D,MAAM,CAAC;IACN,UAAU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C,EAAE,oCAAoC;SACvE,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,0CAA0C,EACxC,0CAA0C,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,CAAC;SACf,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,QAAQ,EAAE;IACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAC5C,eAAe;IACf,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAC,QAAQ,CAAC;;;;CAIX,CAAC,CAAA"}
@@ -68,20 +68,20 @@ export declare const device_metadata: z.ZodObject<{
68
68
  site_name: z.ZodString;
69
69
  entry_relays_total_count: z.ZodNumber;
70
70
  }, "strip", z.ZodTypeAny, {
71
+ site_id: number;
72
+ site_name: string;
71
73
  entry_name: string;
72
74
  org_name: string;
73
75
  zone_id: number;
74
76
  zone_name: string;
75
- site_id: number;
76
- site_name: string;
77
77
  entry_relays_total_count: number;
78
78
  }, {
79
+ site_id: number;
80
+ site_name: string;
79
81
  entry_name: string;
80
82
  org_name: string;
81
83
  zone_id: number;
82
84
  zone_name: string;
83
- site_id: number;
84
- site_name: string;
85
85
  entry_relays_total_count: number;
86
86
  }>>;
87
87
  schlage_metadata: z.ZodOptional<z.ZodObject<{
@@ -766,6 +766,14 @@ export declare const device_metadata: z.ZodObject<{
766
766
  device_type: string;
767
767
  }>>;
768
768
  }, "strip", z.ZodTypeAny, {
769
+ salto_ks_metadata?: {
770
+ lock_type: string;
771
+ lock_id: string;
772
+ customer_reference: string;
773
+ battery_level: string;
774
+ locked_state: string;
775
+ model?: string | undefined;
776
+ } | undefined;
769
777
  august_metadata?: {
770
778
  lock_id: string;
771
779
  lock_name: string;
@@ -776,12 +784,12 @@ export declare const device_metadata: z.ZodObject<{
776
784
  house_id?: string | undefined;
777
785
  } | undefined;
778
786
  avigilon_alta_metadata?: {
787
+ site_id: number;
788
+ site_name: string;
779
789
  entry_name: string;
780
790
  org_name: string;
781
791
  zone_id: number;
782
792
  zone_name: string;
783
- site_id: number;
784
- site_name: string;
785
793
  entry_relays_total_count: number;
786
794
  } | undefined;
787
795
  schlage_metadata?: {
@@ -821,14 +829,6 @@ export declare const device_metadata: z.ZodObject<{
821
829
  locked_state: string;
822
830
  model?: string | undefined;
823
831
  } | undefined;
824
- salto_ks_metadata?: {
825
- lock_type: string;
826
- lock_id: string;
827
- customer_reference: string;
828
- battery_level: string;
829
- locked_state: string;
830
- model?: string | undefined;
831
- } | undefined;
832
832
  genie_metadata?: {
833
833
  device_name: string;
834
834
  door_name: string;
@@ -993,6 +993,14 @@ export declare const device_metadata: z.ZodObject<{
993
993
  device_type: string;
994
994
  } | undefined;
995
995
  }, {
996
+ salto_ks_metadata?: {
997
+ lock_type: string;
998
+ lock_id: string;
999
+ customer_reference: string;
1000
+ battery_level: string;
1001
+ locked_state: string;
1002
+ model?: string | undefined;
1003
+ } | undefined;
996
1004
  august_metadata?: {
997
1005
  lock_id: string;
998
1006
  lock_name: string;
@@ -1003,12 +1011,12 @@ export declare const device_metadata: z.ZodObject<{
1003
1011
  house_id?: string | undefined;
1004
1012
  } | undefined;
1005
1013
  avigilon_alta_metadata?: {
1014
+ site_id: number;
1015
+ site_name: string;
1006
1016
  entry_name: string;
1007
1017
  org_name: string;
1008
1018
  zone_id: number;
1009
1019
  zone_name: string;
1010
- site_id: number;
1011
- site_name: string;
1012
1020
  entry_relays_total_count: number;
1013
1021
  } | undefined;
1014
1022
  schlage_metadata?: {
@@ -1048,14 +1056,6 @@ export declare const device_metadata: z.ZodObject<{
1048
1056
  locked_state: string;
1049
1057
  model?: string | undefined;
1050
1058
  } | undefined;
1051
- salto_ks_metadata?: {
1052
- lock_type: string;
1053
- lock_id: string;
1054
- customer_reference: string;
1055
- battery_level: string;
1056
- locked_state: string;
1057
- model?: string | undefined;
1058
- } | undefined;
1059
1059
  genie_metadata?: {
1060
1060
  device_name: string;
1061
1061
  door_name: string;
@@ -769,20 +769,20 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
769
769
  site_name: z.ZodString;
770
770
  entry_relays_total_count: z.ZodNumber;
771
771
  }, "strip", z.ZodTypeAny, {
772
+ site_id: number;
773
+ site_name: string;
772
774
  entry_name: string;
773
775
  org_name: string;
774
776
  zone_id: number;
775
777
  zone_name: string;
776
- site_id: number;
777
- site_name: string;
778
778
  entry_relays_total_count: number;
779
779
  }, {
780
+ site_id: number;
781
+ site_name: string;
780
782
  entry_name: string;
781
783
  org_name: string;
782
784
  zone_id: number;
783
785
  zone_name: string;
784
- site_id: number;
785
- site_name: string;
786
786
  entry_relays_total_count: number;
787
787
  }>>;
788
788
  schlage_metadata: z.ZodOptional<z.ZodObject<{
@@ -1464,6 +1464,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1464
1464
  device_type: string;
1465
1465
  }>>;
1466
1466
  }, "strip", z.ZodTypeAny, {
1467
+ salto_ks_metadata?: {
1468
+ lock_type: string;
1469
+ lock_id: string;
1470
+ customer_reference: string;
1471
+ battery_level: string;
1472
+ locked_state: string;
1473
+ model?: string | undefined;
1474
+ } | undefined;
1467
1475
  august_metadata?: {
1468
1476
  lock_id: string;
1469
1477
  lock_name: string;
@@ -1474,12 +1482,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1474
1482
  house_id?: string | undefined;
1475
1483
  } | undefined;
1476
1484
  avigilon_alta_metadata?: {
1485
+ site_id: number;
1486
+ site_name: string;
1477
1487
  entry_name: string;
1478
1488
  org_name: string;
1479
1489
  zone_id: number;
1480
1490
  zone_name: string;
1481
- site_id: number;
1482
- site_name: string;
1483
1491
  entry_relays_total_count: number;
1484
1492
  } | undefined;
1485
1493
  schlage_metadata?: {
@@ -1519,14 +1527,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1519
1527
  locked_state: string;
1520
1528
  model?: string | undefined;
1521
1529
  } | undefined;
1522
- salto_ks_metadata?: {
1523
- lock_type: string;
1524
- lock_id: string;
1525
- customer_reference: string;
1526
- battery_level: string;
1527
- locked_state: string;
1528
- model?: string | undefined;
1529
- } | undefined;
1530
1530
  genie_metadata?: {
1531
1531
  device_name: string;
1532
1532
  door_name: string;
@@ -1691,6 +1691,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1691
1691
  device_type: string;
1692
1692
  } | undefined;
1693
1693
  }, {
1694
+ salto_ks_metadata?: {
1695
+ lock_type: string;
1696
+ lock_id: string;
1697
+ customer_reference: string;
1698
+ battery_level: string;
1699
+ locked_state: string;
1700
+ model?: string | undefined;
1701
+ } | undefined;
1694
1702
  august_metadata?: {
1695
1703
  lock_id: string;
1696
1704
  lock_name: string;
@@ -1701,12 +1709,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1701
1709
  house_id?: string | undefined;
1702
1710
  } | undefined;
1703
1711
  avigilon_alta_metadata?: {
1712
+ site_id: number;
1713
+ site_name: string;
1704
1714
  entry_name: string;
1705
1715
  org_name: string;
1706
1716
  zone_id: number;
1707
1717
  zone_name: string;
1708
- site_id: number;
1709
- site_name: string;
1710
1718
  entry_relays_total_count: number;
1711
1719
  } | undefined;
1712
1720
  schlage_metadata?: {
@@ -1746,14 +1754,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
1746
1754
  locked_state: string;
1747
1755
  model?: string | undefined;
1748
1756
  } | undefined;
1749
- salto_ks_metadata?: {
1750
- lock_type: string;
1751
- lock_id: string;
1752
- customer_reference: string;
1753
- battery_level: string;
1754
- locked_state: string;
1755
- model?: string | undefined;
1756
- } | undefined;
1757
1757
  genie_metadata?: {
1758
1758
  device_name: string;
1759
1759
  door_name: string;
@@ -2535,31 +2535,101 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2535
2535
  error_code: "subscription_required";
2536
2536
  is_device_error: true;
2537
2537
  }>, z.ZodObject<z.objectUtil.extendShape<{
2538
+ created_at: z.ZodString;
2538
2539
  message: z.ZodString;
2539
2540
  is_connected_account_error: z.ZodLiteral<true>;
2540
2541
  }, {
2541
2542
  error_code: z.ZodLiteral<"account_disconnected">;
2542
2543
  }>, "strip", z.ZodTypeAny, {
2543
2544
  message: string;
2545
+ created_at: string;
2544
2546
  is_connected_account_error: true;
2545
2547
  error_code: "account_disconnected";
2546
2548
  }, {
2547
2549
  message: string;
2550
+ created_at: string;
2548
2551
  is_connected_account_error: true;
2549
2552
  error_code: "account_disconnected";
2550
2553
  }>, z.ZodObject<z.objectUtil.extendShape<{
2554
+ created_at: z.ZodString;
2551
2555
  message: z.ZodString;
2552
2556
  is_connected_account_error: z.ZodLiteral<true>;
2553
2557
  }, {
2554
2558
  error_code: z.ZodLiteral<"invalid_credentials">;
2555
2559
  }>, "strip", z.ZodTypeAny, {
2556
2560
  message: string;
2561
+ created_at: string;
2557
2562
  is_connected_account_error: true;
2558
2563
  error_code: "invalid_credentials";
2559
2564
  }, {
2560
2565
  message: string;
2566
+ created_at: string;
2561
2567
  is_connected_account_error: true;
2562
2568
  error_code: "invalid_credentials";
2569
+ }>, z.ZodObject<z.objectUtil.extendShape<{
2570
+ created_at: z.ZodString;
2571
+ message: z.ZodString;
2572
+ is_connected_account_error: z.ZodLiteral<true>;
2573
+ }, {
2574
+ error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
2575
+ salto_ks_metadata: z.ZodObject<{
2576
+ sites: z.ZodArray<z.ZodObject<{
2577
+ site_id: z.ZodString;
2578
+ site_name: z.ZodString;
2579
+ subscribed_site_user_count: z.ZodNumber;
2580
+ site_user_subscription_limit: z.ZodNumber;
2581
+ }, "strip", z.ZodTypeAny, {
2582
+ site_id: string;
2583
+ site_name: string;
2584
+ subscribed_site_user_count: number;
2585
+ site_user_subscription_limit: number;
2586
+ }, {
2587
+ site_id: string;
2588
+ site_name: string;
2589
+ subscribed_site_user_count: number;
2590
+ site_user_subscription_limit: number;
2591
+ }>, "many">;
2592
+ }, "strip", z.ZodTypeAny, {
2593
+ sites: {
2594
+ site_id: string;
2595
+ site_name: string;
2596
+ subscribed_site_user_count: number;
2597
+ site_user_subscription_limit: number;
2598
+ }[];
2599
+ }, {
2600
+ sites: {
2601
+ site_id: string;
2602
+ site_name: string;
2603
+ subscribed_site_user_count: number;
2604
+ site_user_subscription_limit: number;
2605
+ }[];
2606
+ }>;
2607
+ }>, "strip", z.ZodTypeAny, {
2608
+ message: string;
2609
+ created_at: string;
2610
+ is_connected_account_error: true;
2611
+ error_code: "salto_ks_subscription_limit_exceeded";
2612
+ salto_ks_metadata: {
2613
+ sites: {
2614
+ site_id: string;
2615
+ site_name: string;
2616
+ subscribed_site_user_count: number;
2617
+ site_user_subscription_limit: number;
2618
+ }[];
2619
+ };
2620
+ }, {
2621
+ message: string;
2622
+ created_at: string;
2623
+ is_connected_account_error: true;
2624
+ error_code: "salto_ks_subscription_limit_exceeded";
2625
+ salto_ks_metadata: {
2626
+ sites: {
2627
+ site_id: string;
2628
+ site_name: string;
2629
+ subscribed_site_user_count: number;
2630
+ site_user_subscription_limit: number;
2631
+ }[];
2632
+ };
2563
2633
  }>]>, "many">;
2564
2634
  warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
2565
2635
  message: z.ZodString;
@@ -2743,16 +2813,31 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2743
2813
  location_name?: string | undefined;
2744
2814
  timezone?: string | undefined;
2745
2815
  } | null;
2746
- connected_account_id: string;
2747
2816
  created_at: string;
2817
+ connected_account_id: string;
2748
2818
  errors: ({
2749
2819
  message: string;
2820
+ created_at: string;
2750
2821
  is_connected_account_error: true;
2751
2822
  error_code: "account_disconnected";
2752
2823
  } | {
2753
2824
  message: string;
2825
+ created_at: string;
2754
2826
  is_connected_account_error: true;
2755
2827
  error_code: "invalid_credentials";
2828
+ } | {
2829
+ message: string;
2830
+ created_at: string;
2831
+ is_connected_account_error: true;
2832
+ error_code: "salto_ks_subscription_limit_exceeded";
2833
+ salto_ks_metadata: {
2834
+ sites: {
2835
+ site_id: string;
2836
+ site_name: string;
2837
+ subscribed_site_user_count: number;
2838
+ site_user_subscription_limit: number;
2839
+ }[];
2840
+ };
2756
2841
  } | {
2757
2842
  message: string;
2758
2843
  error_code: "device_offline";
@@ -2905,6 +2990,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2905
2990
  has_active_phone: boolean;
2906
2991
  } | undefined;
2907
2992
  } & {
2993
+ salto_ks_metadata?: {
2994
+ lock_type: string;
2995
+ lock_id: string;
2996
+ customer_reference: string;
2997
+ battery_level: string;
2998
+ locked_state: string;
2999
+ model?: string | undefined;
3000
+ } | undefined;
2908
3001
  august_metadata?: {
2909
3002
  lock_id: string;
2910
3003
  lock_name: string;
@@ -2915,12 +3008,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2915
3008
  house_id?: string | undefined;
2916
3009
  } | undefined;
2917
3010
  avigilon_alta_metadata?: {
3011
+ site_id: number;
3012
+ site_name: string;
2918
3013
  entry_name: string;
2919
3014
  org_name: string;
2920
3015
  zone_id: number;
2921
3016
  zone_name: string;
2922
- site_id: number;
2923
- site_name: string;
2924
3017
  entry_relays_total_count: number;
2925
3018
  } | undefined;
2926
3019
  schlage_metadata?: {
@@ -2960,14 +3053,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
2960
3053
  locked_state: string;
2961
3054
  model?: string | undefined;
2962
3055
  } | undefined;
2963
- salto_ks_metadata?: {
2964
- lock_type: string;
2965
- lock_id: string;
2966
- customer_reference: string;
2967
- battery_level: string;
2968
- locked_state: string;
2969
- model?: string | undefined;
2970
- } | undefined;
2971
3056
  genie_metadata?: {
2972
3057
  device_name: string;
2973
3058
  door_name: string;
@@ -3254,16 +3339,31 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3254
3339
  location_name?: string | undefined;
3255
3340
  timezone?: string | undefined;
3256
3341
  } | null;
3257
- connected_account_id: string;
3258
3342
  created_at: string;
3343
+ connected_account_id: string;
3259
3344
  errors: ({
3260
3345
  message: string;
3346
+ created_at: string;
3261
3347
  is_connected_account_error: true;
3262
3348
  error_code: "account_disconnected";
3263
3349
  } | {
3264
3350
  message: string;
3351
+ created_at: string;
3265
3352
  is_connected_account_error: true;
3266
3353
  error_code: "invalid_credentials";
3354
+ } | {
3355
+ message: string;
3356
+ created_at: string;
3357
+ is_connected_account_error: true;
3358
+ error_code: "salto_ks_subscription_limit_exceeded";
3359
+ salto_ks_metadata: {
3360
+ sites: {
3361
+ site_id: string;
3362
+ site_name: string;
3363
+ subscribed_site_user_count: number;
3364
+ site_user_subscription_limit: number;
3365
+ }[];
3366
+ };
3267
3367
  } | {
3268
3368
  message: string;
3269
3369
  error_code: "device_offline";
@@ -3416,6 +3516,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3416
3516
  has_active_phone: boolean;
3417
3517
  } | undefined;
3418
3518
  } & {
3519
+ salto_ks_metadata?: {
3520
+ lock_type: string;
3521
+ lock_id: string;
3522
+ customer_reference: string;
3523
+ battery_level: string;
3524
+ locked_state: string;
3525
+ model?: string | undefined;
3526
+ } | undefined;
3419
3527
  august_metadata?: {
3420
3528
  lock_id: string;
3421
3529
  lock_name: string;
@@ -3426,12 +3534,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3426
3534
  house_id?: string | undefined;
3427
3535
  } | undefined;
3428
3536
  avigilon_alta_metadata?: {
3537
+ site_id: number;
3538
+ site_name: string;
3429
3539
  entry_name: string;
3430
3540
  org_name: string;
3431
3541
  zone_id: number;
3432
3542
  zone_name: string;
3433
- site_id: number;
3434
- site_name: string;
3435
3543
  entry_relays_total_count: number;
3436
3544
  } | undefined;
3437
3545
  schlage_metadata?: {
@@ -3471,14 +3579,6 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
3471
3579
  locked_state: string;
3472
3580
  model?: string | undefined;
3473
3581
  } | undefined;
3474
- salto_ks_metadata?: {
3475
- lock_type: string;
3476
- lock_id: string;
3477
- customer_reference: string;
3478
- battery_level: string;
3479
- locked_state: string;
3480
- model?: string | undefined;
3481
- } | undefined;
3482
3582
  genie_metadata?: {
3483
3583
  device_name: string;
3484
3584
  door_name: string;