@seamapi/types 1.918.0 → 1.920.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 +592 -184
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +210 -4
- package/dist/index.cjs +592 -184
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.js +78 -44
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.js +7 -4
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-encoder.js +7 -3
- package/lib/seam/connect/models/acs/acs-encoder.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.js +58 -31
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +42 -24
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.js +29 -19
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/devices/device.js +51 -27
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/events/access-codes.d.ts +118 -0
- package/lib/seam/connect/models/events/access-codes.js +34 -0
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +59 -1
- package/lib/seam/connect/openapi.js +230 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +152 -4
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +136 -114
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +10 -9
- package/src/lib/seam/connect/models/acs/acs-encoder.ts +7 -5
- package/src/lib/seam/connect/models/acs/acs-system.ts +73 -56
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +48 -40
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +78 -73
- package/src/lib/seam/connect/models/devices/device.ts +70 -46
- package/src/lib/seam/connect/models/events/access-codes.ts +48 -0
- package/src/lib/seam/connect/openapi.ts +239 -3
- package/src/lib/seam/connect/route-types.ts +212 -0
|
@@ -56,10 +56,14 @@ const seam_bridge_disconnected = common_acs_system_error.extend({
|
|
|
56
56
|
error_code: z
|
|
57
57
|
.literal('seam_bridge_disconnected')
|
|
58
58
|
.describe(error_code_description),
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
}).describe(`
|
|
60
|
+
---
|
|
61
|
+
resource_type: acs_system
|
|
62
|
+
---
|
|
63
|
+
Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
|
|
64
|
+
This error might also occur if Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/core-concepts/workspaces).
|
|
65
|
+
See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).
|
|
66
|
+
`)
|
|
63
67
|
|
|
64
68
|
const bridge_disconnected = common_acs_system_error.extend({
|
|
65
69
|
error_code: z.literal('bridge_disconnected').describe(error_code_description),
|
|
@@ -69,67 +73,80 @@ const bridge_disconnected = common_acs_system_error.extend({
|
|
|
69
73
|
.describe(
|
|
70
74
|
'Indicates whether the error is related to the [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).',
|
|
71
75
|
),
|
|
72
|
-
})
|
|
73
|
-
|
|
74
|
-
|
|
76
|
+
}).describe(`
|
|
77
|
+
---
|
|
78
|
+
resource_type: acs_system
|
|
79
|
+
---
|
|
80
|
+
Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
|
|
81
|
+
See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).
|
|
82
|
+
`)
|
|
75
83
|
|
|
76
84
|
const visionline_instance_unreachable = common_acs_system_error.extend({
|
|
77
85
|
error_code: z
|
|
78
86
|
.literal('visionline_instance_unreachable')
|
|
79
87
|
.describe(error_code_description),
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
}).describe(`
|
|
89
|
+
---
|
|
90
|
+
resource_type: acs_system
|
|
91
|
+
---
|
|
92
|
+
Indicates that [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge) is functioning correctly and the Seam API can communicate with Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
|
|
93
|
+
For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/core-concepts/workspaces).
|
|
94
|
+
See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).
|
|
95
|
+
`)
|
|
84
96
|
|
|
85
|
-
const salto_ks_subscription_limit_exceeded = common_acs_system_error
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
const salto_ks_subscription_limit_exceeded = common_acs_system_error.extend({
|
|
98
|
+
error_code: z
|
|
99
|
+
.literal('salto_ks_subscription_limit_exceeded')
|
|
100
|
+
.describe(error_code_description),
|
|
101
|
+
}).describe(`
|
|
102
|
+
---
|
|
103
|
+
resource_type: acs_system
|
|
104
|
+
---
|
|
105
|
+
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.
|
|
106
|
+
`)
|
|
94
107
|
|
|
95
|
-
const acs_system_disconnected = common_acs_system_error
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
108
|
+
const acs_system_disconnected = common_acs_system_error.extend({
|
|
109
|
+
error_code: z
|
|
110
|
+
.literal('acs_system_disconnected')
|
|
111
|
+
.describe(error_code_description),
|
|
112
|
+
}).describe(`
|
|
113
|
+
---
|
|
114
|
+
resource_type: acs_system
|
|
115
|
+
---
|
|
116
|
+
Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has been disconnected. See [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system) to resolve the issue.
|
|
117
|
+
`)
|
|
104
118
|
|
|
105
|
-
const account_disconnected = common_acs_system_error
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
119
|
+
const account_disconnected = common_acs_system_error.extend({
|
|
120
|
+
error_code: z
|
|
121
|
+
.literal('account_disconnected')
|
|
122
|
+
.describe(error_code_description),
|
|
123
|
+
}).describe(`
|
|
124
|
+
---
|
|
125
|
+
resource_type: acs_system
|
|
126
|
+
---
|
|
127
|
+
Indicates that the login credentials are invalid. Reconnect the account using a [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) to restore access.
|
|
128
|
+
`)
|
|
114
129
|
|
|
115
|
-
const salto_ks_certification_expired = common_acs_system_error
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
const salto_ks_certification_expired = common_acs_system_error.extend({
|
|
131
|
+
error_code: z
|
|
132
|
+
.literal('salto_ks_certification_expired')
|
|
133
|
+
.describe(error_code_description),
|
|
134
|
+
}).describe(`
|
|
135
|
+
---
|
|
136
|
+
resource_type: acs_system
|
|
137
|
+
---
|
|
138
|
+
Indicates that the [access control system](https://docs.seam.co/low-level-apis/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access.
|
|
139
|
+
`)
|
|
140
|
+
const provider_service_unavailable = common_acs_system_error.extend({
|
|
141
|
+
error_code: z
|
|
142
|
+
.literal('provider_service_unavailable')
|
|
143
|
+
.describe(error_code_description),
|
|
144
|
+
}).describe(`
|
|
145
|
+
---
|
|
146
|
+
resource_type: acs_system
|
|
147
|
+
---
|
|
148
|
+
Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.
|
|
149
|
+
`)
|
|
133
150
|
|
|
134
151
|
const acs_system_error = z
|
|
135
152
|
.discriminatedUnion('error_code', [
|
|
@@ -30,53 +30,61 @@ const common_acs_user_error = z.object({
|
|
|
30
30
|
),
|
|
31
31
|
})
|
|
32
32
|
|
|
33
|
-
const acs_users_deleted_externally = common_acs_user_error
|
|
34
|
-
.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
const acs_users_deleted_externally = common_acs_user_error.extend({
|
|
34
|
+
error_code: z.literal('deleted_externally'),
|
|
35
|
+
}).describe(`
|
|
36
|
+
---
|
|
37
|
+
resource_type: acs_user
|
|
38
|
+
---
|
|
39
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was deleted from the [access system](https://docs.seam.co/low-level-apis/access-systems) outside of Seam.
|
|
40
|
+
`)
|
|
40
41
|
|
|
41
|
-
const acs_users_salto_ks_subscription_limit_exceeded =
|
|
42
|
-
.extend({
|
|
42
|
+
const acs_users_salto_ks_subscription_limit_exceeded =
|
|
43
|
+
common_acs_user_error.extend({
|
|
43
44
|
error_code: z.literal('salto_ks_subscription_limit_exceeded'),
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
}).describe(`
|
|
46
|
+
---
|
|
47
|
+
resource_type: acs_user
|
|
48
|
+
---
|
|
49
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.
|
|
50
|
+
`)
|
|
48
51
|
|
|
49
|
-
const acs_users_failed_to_create_on_acs_system = common_acs_user_error
|
|
50
|
-
.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
const acs_users_failed_to_create_on_acs_system = common_acs_user_error.extend({
|
|
53
|
+
error_code: z.literal('failed_to_create_on_acs_system'),
|
|
54
|
+
}).describe(`
|
|
55
|
+
---
|
|
56
|
+
resource_type: acs_user
|
|
57
|
+
---
|
|
58
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
59
|
+
`)
|
|
56
60
|
|
|
57
|
-
const acs_users_failed_to_update_on_acs_system = common_acs_user_error
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
const acs_users_failed_to_update_on_acs_system = common_acs_user_error.extend({
|
|
62
|
+
error_code: z.literal('failed_to_update_on_acs_system'),
|
|
63
|
+
}).describe(`
|
|
64
|
+
---
|
|
65
|
+
resource_type: acs_user
|
|
66
|
+
---
|
|
67
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
68
|
+
`)
|
|
64
69
|
|
|
65
|
-
const acs_users_failed_to_delete_on_acs_system = common_acs_user_error
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
const acs_users_failed_to_delete_on_acs_system = common_acs_user_error.extend({
|
|
71
|
+
error_code: z.literal('failed_to_delete_on_acs_system'),
|
|
72
|
+
}).describe(`
|
|
73
|
+
---
|
|
74
|
+
resource_type: acs_user
|
|
75
|
+
---
|
|
76
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
77
|
+
`)
|
|
72
78
|
|
|
73
|
-
const acs_users_latch_conflict_with_resident_user =
|
|
74
|
-
.extend({
|
|
79
|
+
const acs_users_latch_conflict_with_resident_user =
|
|
80
|
+
common_acs_user_error.extend({
|
|
75
81
|
error_code: z.literal('latch_conflict_with_resident_user'),
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
82
|
+
}).describe(`
|
|
83
|
+
---
|
|
84
|
+
resource_type: acs_user
|
|
85
|
+
---
|
|
86
|
+
Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).
|
|
87
|
+
`)
|
|
80
88
|
|
|
81
89
|
const acs_user_errors = z
|
|
82
90
|
.discriminatedUnion('error_code', [
|
|
@@ -45,86 +45,91 @@ const common_connected_account_warning = z.object({
|
|
|
45
45
|
),
|
|
46
46
|
})
|
|
47
47
|
|
|
48
|
-
export const account_disconnected = common_connected_account_error
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
export const account_disconnected = common_connected_account_error.extend({
|
|
49
|
+
error_code: z
|
|
50
|
+
.literal('account_disconnected')
|
|
51
|
+
.describe(error_code_description),
|
|
52
|
+
}).describe(`
|
|
53
|
+
---
|
|
54
|
+
resource_type: connected_account
|
|
55
|
+
---
|
|
56
|
+
Indicates that the account is disconnected.
|
|
57
|
+
`)
|
|
55
58
|
|
|
56
|
-
export const bridge_disconnected = common_connected_account_error
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
)
|
|
59
|
+
export const bridge_disconnected = common_connected_account_error.extend({
|
|
60
|
+
error_code: z.literal('bridge_disconnected').describe(error_code_description),
|
|
61
|
+
}).describe(`
|
|
62
|
+
---
|
|
63
|
+
resource_type: connected_account
|
|
64
|
+
---
|
|
65
|
+
Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).
|
|
66
|
+
`)
|
|
65
67
|
|
|
66
68
|
export const salto_ks_subscription_limit_exceeded =
|
|
67
|
-
common_connected_account_error
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
.
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
.
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
69
|
+
common_connected_account_error.extend({
|
|
70
|
+
error_code: z
|
|
71
|
+
.literal('salto_ks_subscription_limit_exceeded')
|
|
72
|
+
.describe(error_code_description),
|
|
73
|
+
salto_ks_metadata: z
|
|
74
|
+
.object({
|
|
75
|
+
sites: z
|
|
76
|
+
.array(
|
|
77
|
+
z
|
|
78
|
+
.object({
|
|
79
|
+
site_id: z
|
|
80
|
+
.string()
|
|
81
|
+
.describe(
|
|
82
|
+
'ID of a Salto site associated with the connected account that has an error.',
|
|
83
|
+
),
|
|
84
|
+
site_name: z
|
|
85
|
+
.string()
|
|
86
|
+
.describe(
|
|
87
|
+
'Name of a Salto site associated with the connected account that has an error.',
|
|
88
|
+
),
|
|
89
|
+
subscribed_site_user_count: z
|
|
90
|
+
.number()
|
|
91
|
+
.int()
|
|
92
|
+
.min(0)
|
|
93
|
+
.describe(
|
|
94
|
+
'Count of subscribed site users for a Salto site associated with the connected account that has an error.',
|
|
95
|
+
),
|
|
96
|
+
site_user_subscription_limit: z
|
|
97
|
+
.number()
|
|
98
|
+
.int()
|
|
99
|
+
.min(0)
|
|
100
|
+
.describe(
|
|
101
|
+
'Subscription limit of site users for a Salto site associated with the connected account that has an error.',
|
|
102
|
+
),
|
|
103
|
+
})
|
|
104
|
+
.describe(
|
|
105
|
+
'Salto site associated with the connected account that has an error.',
|
|
106
|
+
),
|
|
107
|
+
)
|
|
108
|
+
.describe(
|
|
109
|
+
'Salto sites associated with the connected account that has an error.',
|
|
110
|
+
),
|
|
111
|
+
})
|
|
112
|
+
.describe(
|
|
113
|
+
'Salto KS metadata associated with the connected account that has an error.',
|
|
114
|
+
),
|
|
115
|
+
}).describe(`
|
|
116
|
+
---
|
|
117
|
+
resource_type: connected_account
|
|
118
|
+
---
|
|
119
|
+
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.
|
|
120
|
+
`)
|
|
118
121
|
|
|
119
|
-
export const dormakaba_sites_disconnected =
|
|
120
|
-
.extend({
|
|
122
|
+
export const dormakaba_sites_disconnected =
|
|
123
|
+
common_connected_account_error.extend({
|
|
121
124
|
error_code: z
|
|
122
125
|
.literal('dormakaba_sites_disconnected')
|
|
123
126
|
.describe(error_code_description),
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
}).describe(`
|
|
128
|
+
---
|
|
129
|
+
resource_type: connected_account
|
|
130
|
+
---
|
|
131
|
+
Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
132
|
+
`)
|
|
128
133
|
|
|
129
134
|
export const connected_account_error = z.discriminatedUnion('error_code', [
|
|
130
135
|
account_disconnected,
|
|
@@ -134,47 +134,58 @@ const device_offline = common_device_error
|
|
|
134
134
|
.describe(
|
|
135
135
|
`
|
|
136
136
|
---
|
|
137
|
+
resource_type: device
|
|
137
138
|
deprecated: Use \`device_disconnected\` instead.
|
|
138
139
|
---
|
|
139
140
|
Indicates that the device is offline.
|
|
140
141
|
`,
|
|
141
142
|
)
|
|
142
143
|
|
|
143
|
-
const device_removed = common_device_error
|
|
144
|
-
.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
const device_removed = common_device_error.extend({
|
|
145
|
+
error_code: z.literal('device_removed').describe(error_code_description),
|
|
146
|
+
}).describe(`
|
|
147
|
+
---
|
|
148
|
+
resource_type: device
|
|
149
|
+
---
|
|
150
|
+
Indicates that the device has been removed.
|
|
151
|
+
`)
|
|
148
152
|
|
|
149
|
-
const hub_disconnected = common_device_error
|
|
150
|
-
.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
const hub_disconnected = common_device_error.extend({
|
|
154
|
+
error_code: z.literal('hub_disconnected').describe(error_code_description),
|
|
155
|
+
}).describe(`
|
|
156
|
+
---
|
|
157
|
+
resource_type: device
|
|
158
|
+
---
|
|
159
|
+
Indicates that the hub is disconnected.
|
|
160
|
+
`)
|
|
154
161
|
|
|
155
|
-
const device_disconnected = common_device_error
|
|
156
|
-
.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
const device_disconnected = common_device_error.extend({
|
|
163
|
+
error_code: z.literal('device_disconnected').describe(error_code_description),
|
|
164
|
+
}).describe(`
|
|
165
|
+
---
|
|
166
|
+
resource_type: device
|
|
167
|
+
---
|
|
168
|
+
Indicates that the device is disconnected.
|
|
169
|
+
`)
|
|
162
170
|
|
|
163
|
-
const account_disconnected = common_device_error
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
const account_disconnected = common_device_error.extend({
|
|
172
|
+
error_code: z
|
|
173
|
+
.literal('account_disconnected')
|
|
174
|
+
.describe(error_code_description),
|
|
175
|
+
is_connected_account_error: z
|
|
176
|
+
.literal(true)
|
|
177
|
+
.describe(
|
|
178
|
+
'Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.',
|
|
179
|
+
),
|
|
180
|
+
is_device_error: z
|
|
181
|
+
.literal(false)
|
|
182
|
+
.describe('Indicates that the error is not a device error.'),
|
|
183
|
+
}).describe(`
|
|
184
|
+
---
|
|
185
|
+
resource_type: connected_account
|
|
186
|
+
---
|
|
187
|
+
Indicates that the account is disconnected.
|
|
188
|
+
`)
|
|
178
189
|
|
|
179
190
|
const empty_backup_access_code_pool = common_device_error.extend({
|
|
180
191
|
error_code: z
|
|
@@ -182,6 +193,7 @@ const empty_backup_access_code_pool = common_device_error.extend({
|
|
|
182
193
|
.describe(error_code_description),
|
|
183
194
|
}).describe(`
|
|
184
195
|
---
|
|
196
|
+
resource_type: device
|
|
185
197
|
variant_group_key: access_codes
|
|
186
198
|
---
|
|
187
199
|
Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.
|
|
@@ -193,6 +205,7 @@ const august_lock_not_authorized = common_device_error.extend({
|
|
|
193
205
|
.describe(error_code_description),
|
|
194
206
|
}).describe(`
|
|
195
207
|
---
|
|
208
|
+
resource_type: device
|
|
196
209
|
variant_group_key: locks
|
|
197
210
|
---
|
|
198
211
|
Indicates that the user is not authorized to use the August lock.
|
|
@@ -204,6 +217,7 @@ const august_lock_missing_bridge = common_device_error.extend({
|
|
|
204
217
|
.describe(error_code_description),
|
|
205
218
|
}).describe(`
|
|
206
219
|
---
|
|
220
|
+
resource_type: device
|
|
207
221
|
deprecated: Use \`hub_disconnected\` instead.
|
|
208
222
|
variant_group_key: locks
|
|
209
223
|
---
|
|
@@ -224,6 +238,7 @@ const salto_ks_subscription_limit_exceeded = common_device_error.extend({
|
|
|
224
238
|
.describe('Indicates that the error is not a device error.'),
|
|
225
239
|
}).describe(`
|
|
226
240
|
---
|
|
241
|
+
resource_type: connected_account
|
|
227
242
|
variant_group_key: locks
|
|
228
243
|
---
|
|
229
244
|
Indicates that the Salto site user limit has been reached.
|
|
@@ -235,18 +250,22 @@ const ttlock_lock_not_paired_to_gateway = common_device_error.extend({
|
|
|
235
250
|
.describe(error_code_description),
|
|
236
251
|
}).describe(`
|
|
237
252
|
---
|
|
253
|
+
resource_type: device
|
|
238
254
|
deprecated: Use \`hub_disconnected\` instead.
|
|
239
255
|
---
|
|
240
256
|
Indicates that the lock is not paired with a gateway.
|
|
241
257
|
`)
|
|
242
258
|
|
|
243
|
-
const missing_device_credentials = common_device_error
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
259
|
+
const missing_device_credentials = common_device_error.extend({
|
|
260
|
+
error_code: z
|
|
261
|
+
.literal('missing_device_credentials')
|
|
262
|
+
.describe(error_code_description),
|
|
263
|
+
}).describe(`
|
|
264
|
+
---
|
|
265
|
+
resource_type: device
|
|
266
|
+
---
|
|
267
|
+
Indicates that device credentials are missing.
|
|
268
|
+
`)
|
|
250
269
|
|
|
251
270
|
const auxiliary_heat_running = common_device_error.extend({
|
|
252
271
|
error_code: z
|
|
@@ -254,18 +273,22 @@ const auxiliary_heat_running = common_device_error.extend({
|
|
|
254
273
|
.describe(error_code_description),
|
|
255
274
|
}).describe(`
|
|
256
275
|
---
|
|
276
|
+
resource_type: device
|
|
257
277
|
variant_group_key: thermostats
|
|
258
278
|
---
|
|
259
279
|
Indicates that the auxiliary heat is running.
|
|
260
280
|
`)
|
|
261
281
|
|
|
262
|
-
const subscription_required = common_device_error
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
282
|
+
const subscription_required = common_device_error.extend({
|
|
283
|
+
error_code: z
|
|
284
|
+
.literal('subscription_required')
|
|
285
|
+
.describe(error_code_description),
|
|
286
|
+
}).describe(`
|
|
287
|
+
---
|
|
288
|
+
resource_type: device
|
|
289
|
+
---
|
|
290
|
+
Indicates that a subscription is required to connect.
|
|
291
|
+
`)
|
|
269
292
|
|
|
270
293
|
const lockly_missing_wifi_bridge = common_device_error.extend({
|
|
271
294
|
error_code: z
|
|
@@ -273,6 +296,7 @@ const lockly_missing_wifi_bridge = common_device_error.extend({
|
|
|
273
296
|
.describe(error_code_description),
|
|
274
297
|
}).describe(`
|
|
275
298
|
---
|
|
299
|
+
resource_type: device
|
|
276
300
|
deprecated: Use \`hub_disconnected\` instead.
|
|
277
301
|
---
|
|
278
302
|
Indicates that the Lockly lock is not connected to a Wi-Fi bridge.
|