@seamapi/types 1.441.2 → 1.443.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 +127 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1966 -1914
- package/dist/devicedb.cjs.map +1 -1
- package/dist/devicedb.d.cts +27 -27
- package/dist/index.cjs +127 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +387 -389
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +173 -186
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +18 -18
- package/lib/seam/connect/models/acs/acs-credential.d.ts +63 -63
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +6 -6
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +3 -3
- package/lib/seam/connect/models/acs/acs-system.d.ts +56 -56
- package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +152 -152
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +45 -45
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +300 -354
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.d.ts +12 -15
- package/lib/seam/connect/models/action-attempts/common.d.ts +9 -12
- package/lib/seam/connect/models/action-attempts/deprecated.d.ts +84 -105
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +54 -57
- package/lib/seam/connect/models/action-attempts/lock-door.d.ts +12 -15
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.d.ts +12 -15
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +12 -15
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +54 -57
- package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +12 -15
- package/lib/seam/connect/models/action-attempts/set-hvac-mode.d.ts +12 -15
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.d.ts +12 -15
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.d.ts +12 -15
- package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +12 -15
- package/lib/seam/connect/models/batches/batch.d.ts +128 -120
- package/lib/seam/connect/models/batches/spaces.d.ts +128 -120
- package/lib/seam/connect/models/bridges/bridge-client-session.d.ts +24 -24
- package/lib/seam/connect/models/client-sessions/client-session.d.ts +2 -2
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +78 -78
- package/lib/seam/connect/models/customer/access-grant-resources.d.ts +30 -30
- package/lib/seam/connect/models/customer/customer-data.d.ts +57 -57
- package/lib/seam/connect/models/customer/location-resources.d.ts +54 -54
- package/lib/seam/connect/models/customer/user-identity-resources.d.ts +30 -30
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +3 -3
- package/lib/seam/connect/models/devices/device-provider.d.ts +4 -4
- package/lib/seam/connect/models/devices/device.d.ts +368 -376
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +118 -120
- package/lib/seam/connect/models/events/access-codes.d.ts +136 -136
- package/lib/seam/connect/models/events/access-grants.d.ts +40 -40
- package/lib/seam/connect/models/events/access-methods.d.ts +40 -40
- package/lib/seam/connect/models/events/acs/access-groups.d.ts +10 -10
- package/lib/seam/connect/models/events/acs/common.d.ts +3 -3
- package/lib/seam/connect/models/events/acs/credentials.d.ts +40 -40
- package/lib/seam/connect/models/events/acs/encoders.d.ts +20 -20
- package/lib/seam/connect/models/events/acs/entrances.d.ts +20 -20
- package/lib/seam/connect/models/events/acs/index.d.ts +67 -67
- package/lib/seam/connect/models/events/acs/systems.d.ts +24 -24
- package/lib/seam/connect/models/events/acs/users.d.ts +20 -20
- package/lib/seam/connect/models/events/action-attempts.d.ts +32 -32
- package/lib/seam/connect/models/events/client-sessions.d.ts +8 -8
- package/lib/seam/connect/models/events/connect-webviews.d.ts +16 -16
- package/lib/seam/connect/models/events/connected-accounts.d.ts +56 -56
- package/lib/seam/connect/models/events/devices.d.ts +266 -266
- package/lib/seam/connect/models/events/enrollment-automations.d.ts +8 -8
- package/lib/seam/connect/models/events/phones.d.ts +8 -8
- package/lib/seam/connect/models/events/seam-event.d.ts +372 -372
- package/lib/seam/connect/models/phones/phone-session.d.ts +50 -50
- package/lib/seam/connect/models/spaces/space.d.ts +6 -0
- package/lib/seam/connect/models/spaces/space.js +2 -0
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +18 -18
- package/lib/seam/connect/openapi.d.ts +81 -0
- package/lib/seam/connect/openapi.js +123 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +36 -1
- package/lib/seam/devicedb/models/device-model.d.ts +15 -15
- package/lib/seam/devicedb/route-specs.d.ts +12 -12
- package/package.json +8 -7
- package/src/lib/seam/connect/models/spaces/space.ts +2 -0
- package/src/lib/seam/connect/openapi.ts +137 -0
- package/src/lib/seam/connect/route-types.ts +36 -1
- package/lib/seam/connect/internal/enums.d.ts +0 -1
- package/lib/seam/connect/internal/enums.js +0 -2
- package/lib/seam/connect/internal/enums.js.map +0 -1
- package/lib/seam/connect/internal/index.d.ts +0 -4
- package/lib/seam/connect/internal/index.js +0 -5
- package/lib/seam/connect/internal/index.js.map +0 -1
- package/lib/seam/connect/internal/model-types.d.ts +0 -2
- package/lib/seam/connect/internal/model-types.js +0 -2
- package/lib/seam/connect/internal/model-types.js.map +0 -1
- package/lib/seam/connect/internal/schemas.d.ts +0 -2
- package/lib/seam/connect/internal/schemas.js +0 -3
- package/lib/seam/connect/internal/schemas.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const device_capability_flags: z.ZodObject<
|
|
2
|
+
export declare const device_capability_flags: z.ZodObject<{
|
|
3
3
|
can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
|
|
4
4
|
can_remotely_lock: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
can_program_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8,12 +8,12 @@ export declare const device_capability_flags: z.ZodObject<z.objectUtil.extendSha
|
|
|
8
8
|
can_hvac_cool: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
can_hvac_heat_cool: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
can_turn_off_hvac: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
}
|
|
11
|
+
} & {
|
|
12
12
|
can_simulate_removal: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
can_simulate_connection: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
can_simulate_disconnection: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
can_unlock_with_code: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
}
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
can_remotely_unlock?: boolean | undefined;
|
|
18
18
|
can_remotely_lock?: boolean | undefined;
|
|
19
19
|
can_program_offline_access_codes?: boolean | undefined;
|
|
@@ -42,15 +42,14 @@ export declare const device_capability_flags: z.ZodObject<z.objectUtil.extendSha
|
|
|
42
42
|
}>;
|
|
43
43
|
export declare const battery_status: z.ZodEnum<["critical", "low", "good", "full"]>;
|
|
44
44
|
export type BatteryStatus = z.infer<typeof battery_status>;
|
|
45
|
-
export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<
|
|
45
|
+
export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
46
46
|
message: z.ZodString;
|
|
47
|
-
is_device_error: z.ZodLiteral<true>;
|
|
48
47
|
created_at: z.ZodString;
|
|
49
|
-
}
|
|
48
|
+
} & {
|
|
50
49
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
51
50
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
52
51
|
is_device_error: z.ZodLiteral<false>;
|
|
53
|
-
}
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
53
|
message: string;
|
|
55
54
|
created_at: string;
|
|
56
55
|
error_code: "account_disconnected";
|
|
@@ -62,15 +61,14 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
62
61
|
error_code: "account_disconnected";
|
|
63
62
|
is_connected_account_error: true;
|
|
64
63
|
is_device_error: false;
|
|
65
|
-
}>, z.ZodObject<
|
|
64
|
+
}>, z.ZodObject<{
|
|
66
65
|
message: z.ZodString;
|
|
67
|
-
is_device_error: z.ZodLiteral<true>;
|
|
68
66
|
created_at: z.ZodString;
|
|
69
|
-
}
|
|
67
|
+
} & {
|
|
70
68
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
71
69
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
72
70
|
is_device_error: z.ZodLiteral<false>;
|
|
73
|
-
}
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
72
|
message: string;
|
|
75
73
|
created_at: string;
|
|
76
74
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
@@ -82,13 +80,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
82
80
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
83
81
|
is_connected_account_error: true;
|
|
84
82
|
is_device_error: false;
|
|
85
|
-
}>, z.ZodObject<
|
|
83
|
+
}>, z.ZodObject<{
|
|
86
84
|
message: z.ZodString;
|
|
87
85
|
is_device_error: z.ZodLiteral<true>;
|
|
88
86
|
created_at: z.ZodString;
|
|
89
|
-
}
|
|
87
|
+
} & {
|
|
90
88
|
error_code: z.ZodLiteral<"device_offline">;
|
|
91
|
-
}
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
90
|
message: string;
|
|
93
91
|
created_at: string;
|
|
94
92
|
error_code: "device_offline";
|
|
@@ -98,13 +96,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
98
96
|
created_at: string;
|
|
99
97
|
error_code: "device_offline";
|
|
100
98
|
is_device_error: true;
|
|
101
|
-
}>, z.ZodObject<
|
|
99
|
+
}>, z.ZodObject<{
|
|
102
100
|
message: z.ZodString;
|
|
103
101
|
is_device_error: z.ZodLiteral<true>;
|
|
104
102
|
created_at: z.ZodString;
|
|
105
|
-
}
|
|
103
|
+
} & {
|
|
106
104
|
error_code: z.ZodLiteral<"device_removed">;
|
|
107
|
-
}
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
106
|
message: string;
|
|
109
107
|
created_at: string;
|
|
110
108
|
error_code: "device_removed";
|
|
@@ -114,13 +112,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
114
112
|
created_at: string;
|
|
115
113
|
error_code: "device_removed";
|
|
116
114
|
is_device_error: true;
|
|
117
|
-
}>, z.ZodObject<
|
|
115
|
+
}>, z.ZodObject<{
|
|
118
116
|
message: z.ZodString;
|
|
119
117
|
is_device_error: z.ZodLiteral<true>;
|
|
120
118
|
created_at: z.ZodString;
|
|
121
|
-
}
|
|
119
|
+
} & {
|
|
122
120
|
error_code: z.ZodLiteral<"hub_disconnected">;
|
|
123
|
-
}
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
122
|
message: string;
|
|
125
123
|
created_at: string;
|
|
126
124
|
error_code: "hub_disconnected";
|
|
@@ -130,13 +128,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
130
128
|
created_at: string;
|
|
131
129
|
error_code: "hub_disconnected";
|
|
132
130
|
is_device_error: true;
|
|
133
|
-
}>, z.ZodObject<
|
|
131
|
+
}>, z.ZodObject<{
|
|
134
132
|
message: z.ZodString;
|
|
135
133
|
is_device_error: z.ZodLiteral<true>;
|
|
136
134
|
created_at: z.ZodString;
|
|
137
|
-
}
|
|
135
|
+
} & {
|
|
138
136
|
error_code: z.ZodLiteral<"device_disconnected">;
|
|
139
|
-
}
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
138
|
message: string;
|
|
141
139
|
created_at: string;
|
|
142
140
|
error_code: "device_disconnected";
|
|
@@ -146,13 +144,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
146
144
|
created_at: string;
|
|
147
145
|
error_code: "device_disconnected";
|
|
148
146
|
is_device_error: true;
|
|
149
|
-
}>, z.ZodObject<
|
|
147
|
+
}>, z.ZodObject<{
|
|
150
148
|
message: z.ZodString;
|
|
151
149
|
is_device_error: z.ZodLiteral<true>;
|
|
152
150
|
created_at: z.ZodString;
|
|
153
|
-
}
|
|
151
|
+
} & {
|
|
154
152
|
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
155
|
-
}
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
154
|
message: string;
|
|
157
155
|
created_at: string;
|
|
158
156
|
error_code: "empty_backup_access_code_pool";
|
|
@@ -162,13 +160,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
162
160
|
created_at: string;
|
|
163
161
|
error_code: "empty_backup_access_code_pool";
|
|
164
162
|
is_device_error: true;
|
|
165
|
-
}>, z.ZodObject<
|
|
163
|
+
}>, z.ZodObject<{
|
|
166
164
|
message: z.ZodString;
|
|
167
165
|
is_device_error: z.ZodLiteral<true>;
|
|
168
166
|
created_at: z.ZodString;
|
|
169
|
-
}
|
|
167
|
+
} & {
|
|
170
168
|
error_code: z.ZodLiteral<"august_lock_not_authorized">;
|
|
171
|
-
}
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
170
|
message: string;
|
|
173
171
|
created_at: string;
|
|
174
172
|
error_code: "august_lock_not_authorized";
|
|
@@ -178,13 +176,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
178
176
|
created_at: string;
|
|
179
177
|
error_code: "august_lock_not_authorized";
|
|
180
178
|
is_device_error: true;
|
|
181
|
-
}>, z.ZodObject<
|
|
179
|
+
}>, z.ZodObject<{
|
|
182
180
|
message: z.ZodString;
|
|
183
181
|
is_device_error: z.ZodLiteral<true>;
|
|
184
182
|
created_at: z.ZodString;
|
|
185
|
-
}
|
|
183
|
+
} & {
|
|
186
184
|
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
187
|
-
}
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
186
|
message: string;
|
|
189
187
|
created_at: string;
|
|
190
188
|
error_code: "august_lock_missing_bridge";
|
|
@@ -194,13 +192,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
194
192
|
created_at: string;
|
|
195
193
|
error_code: "august_lock_missing_bridge";
|
|
196
194
|
is_device_error: true;
|
|
197
|
-
}>, z.ZodObject<
|
|
195
|
+
}>, z.ZodObject<{
|
|
198
196
|
message: z.ZodString;
|
|
199
197
|
is_device_error: z.ZodLiteral<true>;
|
|
200
198
|
created_at: z.ZodString;
|
|
201
|
-
}
|
|
199
|
+
} & {
|
|
202
200
|
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
203
|
-
}
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
202
|
message: string;
|
|
205
203
|
created_at: string;
|
|
206
204
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
@@ -210,13 +208,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
210
208
|
created_at: string;
|
|
211
209
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
212
210
|
is_device_error: true;
|
|
213
|
-
}>, z.ZodObject<
|
|
211
|
+
}>, z.ZodObject<{
|
|
214
212
|
message: z.ZodString;
|
|
215
213
|
is_device_error: z.ZodLiteral<true>;
|
|
216
214
|
created_at: z.ZodString;
|
|
217
|
-
}
|
|
215
|
+
} & {
|
|
218
216
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
219
|
-
}
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
218
|
message: string;
|
|
221
219
|
created_at: string;
|
|
222
220
|
error_code: "missing_device_credentials";
|
|
@@ -226,13 +224,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
226
224
|
created_at: string;
|
|
227
225
|
error_code: "missing_device_credentials";
|
|
228
226
|
is_device_error: true;
|
|
229
|
-
}>, z.ZodObject<
|
|
227
|
+
}>, z.ZodObject<{
|
|
230
228
|
message: z.ZodString;
|
|
231
229
|
is_device_error: z.ZodLiteral<true>;
|
|
232
230
|
created_at: z.ZodString;
|
|
233
|
-
}
|
|
231
|
+
} & {
|
|
234
232
|
error_code: z.ZodLiteral<"auxiliary_heat_running">;
|
|
235
|
-
}
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
236
234
|
message: string;
|
|
237
235
|
created_at: string;
|
|
238
236
|
error_code: "auxiliary_heat_running";
|
|
@@ -242,13 +240,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
242
240
|
created_at: string;
|
|
243
241
|
error_code: "auxiliary_heat_running";
|
|
244
242
|
is_device_error: true;
|
|
245
|
-
}>, z.ZodObject<
|
|
243
|
+
}>, z.ZodObject<{
|
|
246
244
|
message: z.ZodString;
|
|
247
245
|
is_device_error: z.ZodLiteral<true>;
|
|
248
246
|
created_at: z.ZodString;
|
|
249
|
-
}
|
|
247
|
+
} & {
|
|
250
248
|
error_code: z.ZodLiteral<"subscription_required">;
|
|
251
|
-
}
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
250
|
message: string;
|
|
253
251
|
created_at: string;
|
|
254
252
|
error_code: "subscription_required";
|
|
@@ -258,13 +256,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
258
256
|
created_at: string;
|
|
259
257
|
error_code: "subscription_required";
|
|
260
258
|
is_device_error: true;
|
|
261
|
-
}>, z.ZodObject<
|
|
259
|
+
}>, z.ZodObject<{
|
|
262
260
|
message: z.ZodString;
|
|
263
261
|
is_device_error: z.ZodLiteral<true>;
|
|
264
262
|
created_at: z.ZodString;
|
|
265
|
-
}
|
|
263
|
+
} & {
|
|
266
264
|
error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
|
|
267
|
-
}
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
266
|
message: string;
|
|
269
267
|
created_at: string;
|
|
270
268
|
error_code: "lockly_missing_wifi_bridge";
|
|
@@ -277,13 +275,13 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
277
275
|
}>]>;
|
|
278
276
|
export type DeviceError = z.infer<typeof device_error>;
|
|
279
277
|
declare const device_error_map: z.ZodObject<{
|
|
280
|
-
device_offline: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
278
|
+
device_offline: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
281
279
|
message: z.ZodString;
|
|
282
280
|
is_device_error: z.ZodLiteral<true>;
|
|
283
281
|
created_at: z.ZodString;
|
|
284
|
-
}
|
|
282
|
+
} & {
|
|
285
283
|
error_code: z.ZodLiteral<"device_offline">;
|
|
286
|
-
}
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
287
285
|
message: string;
|
|
288
286
|
created_at: string;
|
|
289
287
|
error_code: "device_offline";
|
|
@@ -294,13 +292,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
294
292
|
error_code: "device_offline";
|
|
295
293
|
is_device_error: true;
|
|
296
294
|
}>>>;
|
|
297
|
-
device_removed: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
295
|
+
device_removed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
298
296
|
message: z.ZodString;
|
|
299
297
|
is_device_error: z.ZodLiteral<true>;
|
|
300
298
|
created_at: z.ZodString;
|
|
301
|
-
}
|
|
299
|
+
} & {
|
|
302
300
|
error_code: z.ZodLiteral<"device_removed">;
|
|
303
|
-
}
|
|
301
|
+
}, "strip", z.ZodTypeAny, {
|
|
304
302
|
message: string;
|
|
305
303
|
created_at: string;
|
|
306
304
|
error_code: "device_removed";
|
|
@@ -311,13 +309,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
311
309
|
error_code: "device_removed";
|
|
312
310
|
is_device_error: true;
|
|
313
311
|
}>>>;
|
|
314
|
-
hub_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
312
|
+
hub_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
315
313
|
message: z.ZodString;
|
|
316
314
|
is_device_error: z.ZodLiteral<true>;
|
|
317
315
|
created_at: z.ZodString;
|
|
318
|
-
}
|
|
316
|
+
} & {
|
|
319
317
|
error_code: z.ZodLiteral<"hub_disconnected">;
|
|
320
|
-
}
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
321
319
|
message: string;
|
|
322
320
|
created_at: string;
|
|
323
321
|
error_code: "hub_disconnected";
|
|
@@ -328,13 +326,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
328
326
|
error_code: "hub_disconnected";
|
|
329
327
|
is_device_error: true;
|
|
330
328
|
}>>>;
|
|
331
|
-
device_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
329
|
+
device_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
332
330
|
message: z.ZodString;
|
|
333
331
|
is_device_error: z.ZodLiteral<true>;
|
|
334
332
|
created_at: z.ZodString;
|
|
335
|
-
}
|
|
333
|
+
} & {
|
|
336
334
|
error_code: z.ZodLiteral<"device_disconnected">;
|
|
337
|
-
}
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
338
336
|
message: string;
|
|
339
337
|
created_at: string;
|
|
340
338
|
error_code: "device_disconnected";
|
|
@@ -345,15 +343,14 @@ declare const device_error_map: z.ZodObject<{
|
|
|
345
343
|
error_code: "device_disconnected";
|
|
346
344
|
is_device_error: true;
|
|
347
345
|
}>>>;
|
|
348
|
-
account_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
346
|
+
account_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
349
347
|
message: z.ZodString;
|
|
350
|
-
is_device_error: z.ZodLiteral<true>;
|
|
351
348
|
created_at: z.ZodString;
|
|
352
|
-
}
|
|
349
|
+
} & {
|
|
353
350
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
354
351
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
355
352
|
is_device_error: z.ZodLiteral<false>;
|
|
356
|
-
}
|
|
353
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
354
|
message: string;
|
|
358
355
|
created_at: string;
|
|
359
356
|
error_code: "account_disconnected";
|
|
@@ -366,13 +363,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
366
363
|
is_connected_account_error: true;
|
|
367
364
|
is_device_error: false;
|
|
368
365
|
}>>>;
|
|
369
|
-
empty_backup_access_code_pool: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
366
|
+
empty_backup_access_code_pool: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
370
367
|
message: z.ZodString;
|
|
371
368
|
is_device_error: z.ZodLiteral<true>;
|
|
372
369
|
created_at: z.ZodString;
|
|
373
|
-
}
|
|
370
|
+
} & {
|
|
374
371
|
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
375
|
-
}
|
|
372
|
+
}, "strip", z.ZodTypeAny, {
|
|
376
373
|
message: string;
|
|
377
374
|
created_at: string;
|
|
378
375
|
error_code: "empty_backup_access_code_pool";
|
|
@@ -383,13 +380,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
383
380
|
error_code: "empty_backup_access_code_pool";
|
|
384
381
|
is_device_error: true;
|
|
385
382
|
}>>>;
|
|
386
|
-
august_lock_not_authorized: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
383
|
+
august_lock_not_authorized: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
387
384
|
message: z.ZodString;
|
|
388
385
|
is_device_error: z.ZodLiteral<true>;
|
|
389
386
|
created_at: z.ZodString;
|
|
390
|
-
}
|
|
387
|
+
} & {
|
|
391
388
|
error_code: z.ZodLiteral<"august_lock_not_authorized">;
|
|
392
|
-
}
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
390
|
message: string;
|
|
394
391
|
created_at: string;
|
|
395
392
|
error_code: "august_lock_not_authorized";
|
|
@@ -400,13 +397,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
400
397
|
error_code: "august_lock_not_authorized";
|
|
401
398
|
is_device_error: true;
|
|
402
399
|
}>>>;
|
|
403
|
-
august_lock_missing_bridge: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
400
|
+
august_lock_missing_bridge: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
404
401
|
message: z.ZodString;
|
|
405
402
|
is_device_error: z.ZodLiteral<true>;
|
|
406
403
|
created_at: z.ZodString;
|
|
407
|
-
}
|
|
404
|
+
} & {
|
|
408
405
|
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
409
|
-
}
|
|
406
|
+
}, "strip", z.ZodTypeAny, {
|
|
410
407
|
message: string;
|
|
411
408
|
created_at: string;
|
|
412
409
|
error_code: "august_lock_missing_bridge";
|
|
@@ -417,15 +414,14 @@ declare const device_error_map: z.ZodObject<{
|
|
|
417
414
|
error_code: "august_lock_missing_bridge";
|
|
418
415
|
is_device_error: true;
|
|
419
416
|
}>>>;
|
|
420
|
-
salto_ks_subscription_limit_exceeded: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
417
|
+
salto_ks_subscription_limit_exceeded: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
421
418
|
message: z.ZodString;
|
|
422
|
-
is_device_error: z.ZodLiteral<true>;
|
|
423
419
|
created_at: z.ZodString;
|
|
424
|
-
}
|
|
420
|
+
} & {
|
|
425
421
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
426
422
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
427
423
|
is_device_error: z.ZodLiteral<false>;
|
|
428
|
-
}
|
|
424
|
+
}, "strip", z.ZodTypeAny, {
|
|
429
425
|
message: string;
|
|
430
426
|
created_at: string;
|
|
431
427
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
@@ -438,13 +434,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
438
434
|
is_connected_account_error: true;
|
|
439
435
|
is_device_error: false;
|
|
440
436
|
}>>>;
|
|
441
|
-
ttlock_lock_not_paired_to_gateway: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
437
|
+
ttlock_lock_not_paired_to_gateway: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
442
438
|
message: z.ZodString;
|
|
443
439
|
is_device_error: z.ZodLiteral<true>;
|
|
444
440
|
created_at: z.ZodString;
|
|
445
|
-
}
|
|
441
|
+
} & {
|
|
446
442
|
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
447
|
-
}
|
|
443
|
+
}, "strip", z.ZodTypeAny, {
|
|
448
444
|
message: string;
|
|
449
445
|
created_at: string;
|
|
450
446
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
@@ -455,13 +451,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
455
451
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
456
452
|
is_device_error: true;
|
|
457
453
|
}>>>;
|
|
458
|
-
missing_device_credentials: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
454
|
+
missing_device_credentials: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
459
455
|
message: z.ZodString;
|
|
460
456
|
is_device_error: z.ZodLiteral<true>;
|
|
461
457
|
created_at: z.ZodString;
|
|
462
|
-
}
|
|
458
|
+
} & {
|
|
463
459
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
464
|
-
}
|
|
460
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
461
|
message: string;
|
|
466
462
|
created_at: string;
|
|
467
463
|
error_code: "missing_device_credentials";
|
|
@@ -472,13 +468,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
472
468
|
error_code: "missing_device_credentials";
|
|
473
469
|
is_device_error: true;
|
|
474
470
|
}>>>;
|
|
475
|
-
auxiliary_heat_running: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
471
|
+
auxiliary_heat_running: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
476
472
|
message: z.ZodString;
|
|
477
473
|
is_device_error: z.ZodLiteral<true>;
|
|
478
474
|
created_at: z.ZodString;
|
|
479
|
-
}
|
|
475
|
+
} & {
|
|
480
476
|
error_code: z.ZodLiteral<"auxiliary_heat_running">;
|
|
481
|
-
}
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
482
478
|
message: string;
|
|
483
479
|
created_at: string;
|
|
484
480
|
error_code: "auxiliary_heat_running";
|
|
@@ -489,13 +485,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
489
485
|
error_code: "auxiliary_heat_running";
|
|
490
486
|
is_device_error: true;
|
|
491
487
|
}>>>;
|
|
492
|
-
subscription_required: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
488
|
+
subscription_required: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
493
489
|
message: z.ZodString;
|
|
494
490
|
is_device_error: z.ZodLiteral<true>;
|
|
495
491
|
created_at: z.ZodString;
|
|
496
|
-
}
|
|
492
|
+
} & {
|
|
497
493
|
error_code: z.ZodLiteral<"subscription_required">;
|
|
498
|
-
}
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
495
|
message: string;
|
|
500
496
|
created_at: string;
|
|
501
497
|
error_code: "subscription_required";
|
|
@@ -506,13 +502,13 @@ declare const device_error_map: z.ZodObject<{
|
|
|
506
502
|
error_code: "subscription_required";
|
|
507
503
|
is_device_error: true;
|
|
508
504
|
}>>>;
|
|
509
|
-
lockly_missing_wifi_bridge: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
505
|
+
lockly_missing_wifi_bridge: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
510
506
|
message: z.ZodString;
|
|
511
507
|
is_device_error: z.ZodLiteral<true>;
|
|
512
508
|
created_at: z.ZodString;
|
|
513
|
-
}
|
|
509
|
+
} & {
|
|
514
510
|
error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
|
|
515
|
-
}
|
|
511
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
512
|
message: string;
|
|
517
513
|
created_at: string;
|
|
518
514
|
error_code: "lockly_missing_wifi_bridge";
|
|
@@ -699,12 +695,12 @@ declare const device_error_map: z.ZodObject<{
|
|
|
699
695
|
} | null | undefined;
|
|
700
696
|
}>;
|
|
701
697
|
export type DeviceErrorMap = z.infer<typeof device_error_map>;
|
|
702
|
-
export declare const unknown_issue_with_phone: z.ZodObject<
|
|
698
|
+
export declare const unknown_issue_with_phone: z.ZodObject<{
|
|
703
699
|
message: z.ZodString;
|
|
704
700
|
created_at: z.ZodString;
|
|
705
|
-
}
|
|
701
|
+
} & {
|
|
706
702
|
warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
|
|
707
|
-
}
|
|
703
|
+
}, "strip", z.ZodTypeAny, {
|
|
708
704
|
message: string;
|
|
709
705
|
created_at: string;
|
|
710
706
|
warning_code: "unknown_issue_with_phone";
|
|
@@ -713,12 +709,12 @@ export declare const unknown_issue_with_phone: z.ZodObject<z.objectUtil.extendSh
|
|
|
713
709
|
created_at: string;
|
|
714
710
|
warning_code: "unknown_issue_with_phone";
|
|
715
711
|
}>;
|
|
716
|
-
declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<
|
|
712
|
+
declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
717
713
|
message: z.ZodString;
|
|
718
714
|
created_at: z.ZodString;
|
|
719
|
-
}
|
|
715
|
+
} & {
|
|
720
716
|
warning_code: z.ZodLiteral<"partial_backup_access_code_pool">;
|
|
721
|
-
}
|
|
717
|
+
}, "strip", z.ZodTypeAny, {
|
|
722
718
|
message: string;
|
|
723
719
|
created_at: string;
|
|
724
720
|
warning_code: "partial_backup_access_code_pool";
|
|
@@ -726,12 +722,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
726
722
|
message: string;
|
|
727
723
|
created_at: string;
|
|
728
724
|
warning_code: "partial_backup_access_code_pool";
|
|
729
|
-
}>, z.ZodObject<
|
|
725
|
+
}>, z.ZodObject<{
|
|
730
726
|
message: z.ZodString;
|
|
731
727
|
created_at: z.ZodString;
|
|
732
|
-
}
|
|
728
|
+
} & {
|
|
733
729
|
warning_code: z.ZodLiteral<"many_active_backup_codes">;
|
|
734
|
-
}
|
|
730
|
+
}, "strip", z.ZodTypeAny, {
|
|
735
731
|
message: string;
|
|
736
732
|
created_at: string;
|
|
737
733
|
warning_code: "many_active_backup_codes";
|
|
@@ -739,12 +735,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
739
735
|
message: string;
|
|
740
736
|
created_at: string;
|
|
741
737
|
warning_code: "many_active_backup_codes";
|
|
742
|
-
}>, z.ZodObject<
|
|
738
|
+
}>, z.ZodObject<{
|
|
743
739
|
message: z.ZodString;
|
|
744
740
|
created_at: z.ZodString;
|
|
745
|
-
}
|
|
741
|
+
} & {
|
|
746
742
|
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
747
|
-
}
|
|
743
|
+
}, "strip", z.ZodTypeAny, {
|
|
748
744
|
message: string;
|
|
749
745
|
created_at: string;
|
|
750
746
|
warning_code: "wyze_device_missing_gateway";
|
|
@@ -752,12 +748,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
752
748
|
message: string;
|
|
753
749
|
created_at: string;
|
|
754
750
|
warning_code: "wyze_device_missing_gateway";
|
|
755
|
-
}>, z.ZodObject<
|
|
751
|
+
}>, z.ZodObject<{
|
|
756
752
|
message: z.ZodString;
|
|
757
753
|
created_at: z.ZodString;
|
|
758
|
-
}
|
|
754
|
+
} & {
|
|
759
755
|
warning_code: z.ZodLiteral<"functional_offline_device">;
|
|
760
|
-
}
|
|
756
|
+
}, "strip", z.ZodTypeAny, {
|
|
761
757
|
message: string;
|
|
762
758
|
created_at: string;
|
|
763
759
|
warning_code: "functional_offline_device";
|
|
@@ -765,12 +761,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
765
761
|
message: string;
|
|
766
762
|
created_at: string;
|
|
767
763
|
warning_code: "functional_offline_device";
|
|
768
|
-
}>, z.ZodObject<
|
|
764
|
+
}>, z.ZodObject<{
|
|
769
765
|
message: z.ZodString;
|
|
770
766
|
created_at: z.ZodString;
|
|
771
|
-
}
|
|
767
|
+
} & {
|
|
772
768
|
warning_code: z.ZodLiteral<"third_party_integration_detected">;
|
|
773
|
-
}
|
|
769
|
+
}, "strip", z.ZodTypeAny, {
|
|
774
770
|
message: string;
|
|
775
771
|
created_at: string;
|
|
776
772
|
warning_code: "third_party_integration_detected";
|
|
@@ -778,12 +774,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
778
774
|
message: string;
|
|
779
775
|
created_at: string;
|
|
780
776
|
warning_code: "third_party_integration_detected";
|
|
781
|
-
}>, z.ZodObject<
|
|
777
|
+
}>, z.ZodObject<{
|
|
782
778
|
message: z.ZodString;
|
|
783
779
|
created_at: z.ZodString;
|
|
784
|
-
}
|
|
780
|
+
} & {
|
|
785
781
|
warning_code: z.ZodLiteral<"nest_thermostat_in_manual_eco_mode">;
|
|
786
|
-
}
|
|
782
|
+
}, "strip", z.ZodTypeAny, {
|
|
787
783
|
message: string;
|
|
788
784
|
created_at: string;
|
|
789
785
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
@@ -791,12 +787,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
791
787
|
message: string;
|
|
792
788
|
created_at: string;
|
|
793
789
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
794
|
-
}>, z.ZodObject<
|
|
790
|
+
}>, z.ZodObject<{
|
|
795
791
|
message: z.ZodString;
|
|
796
792
|
created_at: z.ZodString;
|
|
797
|
-
}
|
|
793
|
+
} & {
|
|
798
794
|
warning_code: z.ZodLiteral<"ttlock_lock_gateway_unlocking_not_enabled">;
|
|
799
|
-
}
|
|
795
|
+
}, "strip", z.ZodTypeAny, {
|
|
800
796
|
message: string;
|
|
801
797
|
created_at: string;
|
|
802
798
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
@@ -804,12 +800,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
804
800
|
message: string;
|
|
805
801
|
created_at: string;
|
|
806
802
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
807
|
-
}>, z.ZodObject<
|
|
803
|
+
}>, z.ZodObject<{
|
|
808
804
|
message: z.ZodString;
|
|
809
805
|
created_at: z.ZodString;
|
|
810
|
-
}
|
|
806
|
+
} & {
|
|
811
807
|
warning_code: z.ZodLiteral<"ttlock_weak_gateway_signal">;
|
|
812
|
-
}
|
|
808
|
+
}, "strip", z.ZodTypeAny, {
|
|
813
809
|
message: string;
|
|
814
810
|
created_at: string;
|
|
815
811
|
warning_code: "ttlock_weak_gateway_signal";
|
|
@@ -817,12 +813,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
817
813
|
message: string;
|
|
818
814
|
created_at: string;
|
|
819
815
|
warning_code: "ttlock_weak_gateway_signal";
|
|
820
|
-
}>, z.ZodObject<
|
|
816
|
+
}>, z.ZodObject<{
|
|
821
817
|
message: z.ZodString;
|
|
822
818
|
created_at: z.ZodString;
|
|
823
|
-
}
|
|
819
|
+
} & {
|
|
824
820
|
warning_code: z.ZodLiteral<"power_saving_mode">;
|
|
825
|
-
}
|
|
821
|
+
}, "strip", z.ZodTypeAny, {
|
|
826
822
|
message: string;
|
|
827
823
|
created_at: string;
|
|
828
824
|
warning_code: "power_saving_mode";
|
|
@@ -830,12 +826,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
830
826
|
message: string;
|
|
831
827
|
created_at: string;
|
|
832
828
|
warning_code: "power_saving_mode";
|
|
833
|
-
}>, z.ZodObject<
|
|
829
|
+
}>, z.ZodObject<{
|
|
834
830
|
message: z.ZodString;
|
|
835
831
|
created_at: z.ZodString;
|
|
836
|
-
}
|
|
832
|
+
} & {
|
|
837
833
|
warning_code: z.ZodLiteral<"temperature_threshold_exceeded">;
|
|
838
|
-
}
|
|
834
|
+
}, "strip", z.ZodTypeAny, {
|
|
839
835
|
message: string;
|
|
840
836
|
created_at: string;
|
|
841
837
|
warning_code: "temperature_threshold_exceeded";
|
|
@@ -843,12 +839,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
843
839
|
message: string;
|
|
844
840
|
created_at: string;
|
|
845
841
|
warning_code: "temperature_threshold_exceeded";
|
|
846
|
-
}>, z.ZodObject<
|
|
842
|
+
}>, z.ZodObject<{
|
|
847
843
|
message: z.ZodString;
|
|
848
844
|
created_at: z.ZodString;
|
|
849
|
-
}
|
|
845
|
+
} & {
|
|
850
846
|
warning_code: z.ZodLiteral<"device_communication_degraded">;
|
|
851
|
-
}
|
|
847
|
+
}, "strip", z.ZodTypeAny, {
|
|
852
848
|
message: string;
|
|
853
849
|
created_at: string;
|
|
854
850
|
warning_code: "device_communication_degraded";
|
|
@@ -856,12 +852,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
856
852
|
message: string;
|
|
857
853
|
created_at: string;
|
|
858
854
|
warning_code: "device_communication_degraded";
|
|
859
|
-
}>, z.ZodObject<
|
|
855
|
+
}>, z.ZodObject<{
|
|
860
856
|
message: z.ZodString;
|
|
861
857
|
created_at: z.ZodString;
|
|
862
|
-
}
|
|
858
|
+
} & {
|
|
863
859
|
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
864
|
-
}
|
|
860
|
+
}, "strip", z.ZodTypeAny, {
|
|
865
861
|
message: string;
|
|
866
862
|
created_at: string;
|
|
867
863
|
warning_code: "scheduled_maintenance_window";
|
|
@@ -869,12 +865,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
869
865
|
message: string;
|
|
870
866
|
created_at: string;
|
|
871
867
|
warning_code: "scheduled_maintenance_window";
|
|
872
|
-
}>, z.ZodObject<
|
|
868
|
+
}>, z.ZodObject<{
|
|
873
869
|
message: z.ZodString;
|
|
874
870
|
created_at: z.ZodString;
|
|
875
|
-
}
|
|
871
|
+
} & {
|
|
876
872
|
warning_code: z.ZodLiteral<"device_has_flaky_connection">;
|
|
877
|
-
}
|
|
873
|
+
}, "strip", z.ZodTypeAny, {
|
|
878
874
|
message: string;
|
|
879
875
|
created_at: string;
|
|
880
876
|
warning_code: "device_has_flaky_connection";
|
|
@@ -882,12 +878,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
882
878
|
message: string;
|
|
883
879
|
created_at: string;
|
|
884
880
|
warning_code: "device_has_flaky_connection";
|
|
885
|
-
}>, z.ZodObject<
|
|
881
|
+
}>, z.ZodObject<{
|
|
886
882
|
message: z.ZodString;
|
|
887
883
|
created_at: z.ZodString;
|
|
888
|
-
}
|
|
884
|
+
} & {
|
|
889
885
|
warning_code: z.ZodLiteral<"salto_ks_office_mode">;
|
|
890
|
-
}
|
|
886
|
+
}, "strip", z.ZodTypeAny, {
|
|
891
887
|
message: string;
|
|
892
888
|
created_at: string;
|
|
893
889
|
warning_code: "salto_ks_office_mode";
|
|
@@ -895,12 +891,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
895
891
|
message: string;
|
|
896
892
|
created_at: string;
|
|
897
893
|
warning_code: "salto_ks_office_mode";
|
|
898
|
-
}>, z.ZodObject<
|
|
894
|
+
}>, z.ZodObject<{
|
|
899
895
|
message: z.ZodString;
|
|
900
896
|
created_at: z.ZodString;
|
|
901
|
-
}
|
|
897
|
+
} & {
|
|
902
898
|
warning_code: z.ZodLiteral<"salto_ks_privacy_mode">;
|
|
903
|
-
}
|
|
899
|
+
}, "strip", z.ZodTypeAny, {
|
|
904
900
|
message: string;
|
|
905
901
|
created_at: string;
|
|
906
902
|
warning_code: "salto_ks_privacy_mode";
|
|
@@ -908,12 +904,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
908
904
|
message: string;
|
|
909
905
|
created_at: string;
|
|
910
906
|
warning_code: "salto_ks_privacy_mode";
|
|
911
|
-
}>, z.ZodObject<
|
|
907
|
+
}>, z.ZodObject<{
|
|
912
908
|
message: z.ZodString;
|
|
913
909
|
created_at: z.ZodString;
|
|
914
|
-
}
|
|
910
|
+
} & {
|
|
915
911
|
warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
|
|
916
|
-
}
|
|
912
|
+
}, "strip", z.ZodTypeAny, {
|
|
917
913
|
message: string;
|
|
918
914
|
created_at: string;
|
|
919
915
|
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
@@ -921,12 +917,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
921
917
|
message: string;
|
|
922
918
|
created_at: string;
|
|
923
919
|
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
924
|
-
}>, z.ZodObject<
|
|
920
|
+
}>, z.ZodObject<{
|
|
925
921
|
message: z.ZodString;
|
|
926
922
|
created_at: z.ZodString;
|
|
927
|
-
}
|
|
923
|
+
} & {
|
|
928
924
|
warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
|
|
929
|
-
}
|
|
925
|
+
}, "strip", z.ZodTypeAny, {
|
|
930
926
|
message: string;
|
|
931
927
|
created_at: string;
|
|
932
928
|
warning_code: "unknown_issue_with_phone";
|
|
@@ -934,12 +930,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
934
930
|
message: string;
|
|
935
931
|
created_at: string;
|
|
936
932
|
warning_code: "unknown_issue_with_phone";
|
|
937
|
-
}>, z.ZodObject<
|
|
933
|
+
}>, z.ZodObject<{
|
|
938
934
|
message: z.ZodString;
|
|
939
935
|
created_at: z.ZodString;
|
|
940
|
-
}
|
|
936
|
+
} & {
|
|
941
937
|
warning_code: z.ZodLiteral<"lockly_time_zone_not_configured">;
|
|
942
|
-
}
|
|
938
|
+
}, "strip", z.ZodTypeAny, {
|
|
943
939
|
message: string;
|
|
944
940
|
created_at: string;
|
|
945
941
|
warning_code: "lockly_time_zone_not_configured";
|
|
@@ -950,12 +946,12 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
950
946
|
}>]>;
|
|
951
947
|
export type DeviceWarning = z.infer<typeof device_warning>;
|
|
952
948
|
export declare const device_warning_map: z.ZodObject<{
|
|
953
|
-
partial_backup_access_code_pool: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
949
|
+
partial_backup_access_code_pool: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
954
950
|
message: z.ZodString;
|
|
955
951
|
created_at: z.ZodString;
|
|
956
|
-
}
|
|
952
|
+
} & {
|
|
957
953
|
warning_code: z.ZodLiteral<"partial_backup_access_code_pool">;
|
|
958
|
-
}
|
|
954
|
+
}, "strip", z.ZodTypeAny, {
|
|
959
955
|
message: string;
|
|
960
956
|
created_at: string;
|
|
961
957
|
warning_code: "partial_backup_access_code_pool";
|
|
@@ -964,12 +960,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
964
960
|
created_at: string;
|
|
965
961
|
warning_code: "partial_backup_access_code_pool";
|
|
966
962
|
}>>>;
|
|
967
|
-
many_active_backup_codes: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
963
|
+
many_active_backup_codes: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
968
964
|
message: z.ZodString;
|
|
969
965
|
created_at: z.ZodString;
|
|
970
|
-
}
|
|
966
|
+
} & {
|
|
971
967
|
warning_code: z.ZodLiteral<"many_active_backup_codes">;
|
|
972
|
-
}
|
|
968
|
+
}, "strip", z.ZodTypeAny, {
|
|
973
969
|
message: string;
|
|
974
970
|
created_at: string;
|
|
975
971
|
warning_code: "many_active_backup_codes";
|
|
@@ -978,15 +974,15 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
978
974
|
created_at: string;
|
|
979
975
|
warning_code: "many_active_backup_codes";
|
|
980
976
|
}>>>;
|
|
981
|
-
device_has_flaky_connection: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
977
|
+
device_has_flaky_connection: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
982
978
|
message: z.ZodString;
|
|
983
979
|
created_at: z.ZodString;
|
|
984
|
-
}
|
|
980
|
+
} & {
|
|
985
981
|
warning_code: z.ZodLiteral<"device_has_flaky_connection">;
|
|
986
|
-
}
|
|
982
|
+
} & {
|
|
987
983
|
_event_id: z.ZodOptional<z.ZodString>;
|
|
988
984
|
_reason: z.ZodOptional<z.ZodString>;
|
|
989
|
-
}
|
|
985
|
+
}, "strip", z.ZodTypeAny, {
|
|
990
986
|
message: string;
|
|
991
987
|
created_at: string;
|
|
992
988
|
warning_code: "device_has_flaky_connection";
|
|
@@ -999,12 +995,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
999
995
|
_event_id?: string | undefined;
|
|
1000
996
|
_reason?: string | undefined;
|
|
1001
997
|
}>>>;
|
|
1002
|
-
wyze_device_missing_gateway: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
998
|
+
wyze_device_missing_gateway: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1003
999
|
message: z.ZodString;
|
|
1004
1000
|
created_at: z.ZodString;
|
|
1005
|
-
}
|
|
1001
|
+
} & {
|
|
1006
1002
|
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
1007
|
-
}
|
|
1003
|
+
}, "strip", z.ZodTypeAny, {
|
|
1008
1004
|
message: string;
|
|
1009
1005
|
created_at: string;
|
|
1010
1006
|
warning_code: "wyze_device_missing_gateway";
|
|
@@ -1013,12 +1009,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1013
1009
|
created_at: string;
|
|
1014
1010
|
warning_code: "wyze_device_missing_gateway";
|
|
1015
1011
|
}>>>;
|
|
1016
|
-
functional_offline_device: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1012
|
+
functional_offline_device: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1017
1013
|
message: z.ZodString;
|
|
1018
1014
|
created_at: z.ZodString;
|
|
1019
|
-
}
|
|
1015
|
+
} & {
|
|
1020
1016
|
warning_code: z.ZodLiteral<"functional_offline_device">;
|
|
1021
|
-
}
|
|
1017
|
+
}, "strip", z.ZodTypeAny, {
|
|
1022
1018
|
message: string;
|
|
1023
1019
|
created_at: string;
|
|
1024
1020
|
warning_code: "functional_offline_device";
|
|
@@ -1027,12 +1023,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1027
1023
|
created_at: string;
|
|
1028
1024
|
warning_code: "functional_offline_device";
|
|
1029
1025
|
}>>>;
|
|
1030
|
-
third_party_integration_detected: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1026
|
+
third_party_integration_detected: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1031
1027
|
message: z.ZodString;
|
|
1032
1028
|
created_at: z.ZodString;
|
|
1033
|
-
}
|
|
1029
|
+
} & {
|
|
1034
1030
|
warning_code: z.ZodLiteral<"third_party_integration_detected">;
|
|
1035
|
-
}
|
|
1031
|
+
}, "strip", z.ZodTypeAny, {
|
|
1036
1032
|
message: string;
|
|
1037
1033
|
created_at: string;
|
|
1038
1034
|
warning_code: "third_party_integration_detected";
|
|
@@ -1041,12 +1037,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1041
1037
|
created_at: string;
|
|
1042
1038
|
warning_code: "third_party_integration_detected";
|
|
1043
1039
|
}>>>;
|
|
1044
|
-
nest_thermostat_in_manual_eco_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1040
|
+
nest_thermostat_in_manual_eco_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1045
1041
|
message: z.ZodString;
|
|
1046
1042
|
created_at: z.ZodString;
|
|
1047
|
-
}
|
|
1043
|
+
} & {
|
|
1048
1044
|
warning_code: z.ZodLiteral<"nest_thermostat_in_manual_eco_mode">;
|
|
1049
|
-
}
|
|
1045
|
+
}, "strip", z.ZodTypeAny, {
|
|
1050
1046
|
message: string;
|
|
1051
1047
|
created_at: string;
|
|
1052
1048
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
@@ -1055,12 +1051,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1055
1051
|
created_at: string;
|
|
1056
1052
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
1057
1053
|
}>>>;
|
|
1058
|
-
ttlock_lock_gateway_unlocking_not_enabled: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1054
|
+
ttlock_lock_gateway_unlocking_not_enabled: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1059
1055
|
message: z.ZodString;
|
|
1060
1056
|
created_at: z.ZodString;
|
|
1061
|
-
}
|
|
1057
|
+
} & {
|
|
1062
1058
|
warning_code: z.ZodLiteral<"ttlock_lock_gateway_unlocking_not_enabled">;
|
|
1063
|
-
}
|
|
1059
|
+
}, "strip", z.ZodTypeAny, {
|
|
1064
1060
|
message: string;
|
|
1065
1061
|
created_at: string;
|
|
1066
1062
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
@@ -1069,12 +1065,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1069
1065
|
created_at: string;
|
|
1070
1066
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
1071
1067
|
}>>>;
|
|
1072
|
-
ttlock_weak_gateway_signal: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1068
|
+
ttlock_weak_gateway_signal: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1073
1069
|
message: z.ZodString;
|
|
1074
1070
|
created_at: z.ZodString;
|
|
1075
|
-
}
|
|
1071
|
+
} & {
|
|
1076
1072
|
warning_code: z.ZodLiteral<"ttlock_weak_gateway_signal">;
|
|
1077
|
-
}
|
|
1073
|
+
}, "strip", z.ZodTypeAny, {
|
|
1078
1074
|
message: string;
|
|
1079
1075
|
created_at: string;
|
|
1080
1076
|
warning_code: "ttlock_weak_gateway_signal";
|
|
@@ -1083,12 +1079,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1083
1079
|
created_at: string;
|
|
1084
1080
|
warning_code: "ttlock_weak_gateway_signal";
|
|
1085
1081
|
}>>>;
|
|
1086
|
-
power_saving_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1082
|
+
power_saving_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1087
1083
|
message: z.ZodString;
|
|
1088
1084
|
created_at: z.ZodString;
|
|
1089
|
-
}
|
|
1085
|
+
} & {
|
|
1090
1086
|
warning_code: z.ZodLiteral<"power_saving_mode">;
|
|
1091
|
-
}
|
|
1087
|
+
}, "strip", z.ZodTypeAny, {
|
|
1092
1088
|
message: string;
|
|
1093
1089
|
created_at: string;
|
|
1094
1090
|
warning_code: "power_saving_mode";
|
|
@@ -1097,12 +1093,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1097
1093
|
created_at: string;
|
|
1098
1094
|
warning_code: "power_saving_mode";
|
|
1099
1095
|
}>>>;
|
|
1100
|
-
temperature_threshold_exceeded: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1096
|
+
temperature_threshold_exceeded: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1101
1097
|
message: z.ZodString;
|
|
1102
1098
|
created_at: z.ZodString;
|
|
1103
|
-
}
|
|
1099
|
+
} & {
|
|
1104
1100
|
warning_code: z.ZodLiteral<"temperature_threshold_exceeded">;
|
|
1105
|
-
}
|
|
1101
|
+
}, "strip", z.ZodTypeAny, {
|
|
1106
1102
|
message: string;
|
|
1107
1103
|
created_at: string;
|
|
1108
1104
|
warning_code: "temperature_threshold_exceeded";
|
|
@@ -1111,12 +1107,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1111
1107
|
created_at: string;
|
|
1112
1108
|
warning_code: "temperature_threshold_exceeded";
|
|
1113
1109
|
}>>>;
|
|
1114
|
-
device_communication_degraded: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1110
|
+
device_communication_degraded: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1115
1111
|
message: z.ZodString;
|
|
1116
1112
|
created_at: z.ZodString;
|
|
1117
|
-
}
|
|
1113
|
+
} & {
|
|
1118
1114
|
warning_code: z.ZodLiteral<"device_communication_degraded">;
|
|
1119
|
-
}
|
|
1115
|
+
}, "strip", z.ZodTypeAny, {
|
|
1120
1116
|
message: string;
|
|
1121
1117
|
created_at: string;
|
|
1122
1118
|
warning_code: "device_communication_degraded";
|
|
@@ -1125,12 +1121,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1125
1121
|
created_at: string;
|
|
1126
1122
|
warning_code: "device_communication_degraded";
|
|
1127
1123
|
}>>>;
|
|
1128
|
-
scheduled_maintenance_window: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1124
|
+
scheduled_maintenance_window: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1129
1125
|
message: z.ZodString;
|
|
1130
1126
|
created_at: z.ZodString;
|
|
1131
|
-
}
|
|
1127
|
+
} & {
|
|
1132
1128
|
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
1133
|
-
}
|
|
1129
|
+
}, "strip", z.ZodTypeAny, {
|
|
1134
1130
|
message: string;
|
|
1135
1131
|
created_at: string;
|
|
1136
1132
|
warning_code: "scheduled_maintenance_window";
|
|
@@ -1139,12 +1135,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1139
1135
|
created_at: string;
|
|
1140
1136
|
warning_code: "scheduled_maintenance_window";
|
|
1141
1137
|
}>>>;
|
|
1142
|
-
salto_ks_office_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1138
|
+
salto_ks_office_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1143
1139
|
message: z.ZodString;
|
|
1144
1140
|
created_at: z.ZodString;
|
|
1145
|
-
}
|
|
1141
|
+
} & {
|
|
1146
1142
|
warning_code: z.ZodLiteral<"salto_ks_office_mode">;
|
|
1147
|
-
}
|
|
1143
|
+
}, "strip", z.ZodTypeAny, {
|
|
1148
1144
|
message: string;
|
|
1149
1145
|
created_at: string;
|
|
1150
1146
|
warning_code: "salto_ks_office_mode";
|
|
@@ -1153,12 +1149,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1153
1149
|
created_at: string;
|
|
1154
1150
|
warning_code: "salto_ks_office_mode";
|
|
1155
1151
|
}>>>;
|
|
1156
|
-
salto_ks_privacy_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1152
|
+
salto_ks_privacy_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1157
1153
|
message: z.ZodString;
|
|
1158
1154
|
created_at: z.ZodString;
|
|
1159
|
-
}
|
|
1155
|
+
} & {
|
|
1160
1156
|
warning_code: z.ZodLiteral<"salto_ks_privacy_mode">;
|
|
1161
|
-
}
|
|
1157
|
+
}, "strip", z.ZodTypeAny, {
|
|
1162
1158
|
message: string;
|
|
1163
1159
|
created_at: string;
|
|
1164
1160
|
warning_code: "salto_ks_privacy_mode";
|
|
@@ -1167,12 +1163,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1167
1163
|
created_at: string;
|
|
1168
1164
|
warning_code: "salto_ks_privacy_mode";
|
|
1169
1165
|
}>>>;
|
|
1170
|
-
salto_ks_subscription_limit_almost_reached: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1166
|
+
salto_ks_subscription_limit_almost_reached: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1171
1167
|
message: z.ZodString;
|
|
1172
1168
|
created_at: z.ZodString;
|
|
1173
|
-
}
|
|
1169
|
+
} & {
|
|
1174
1170
|
warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
|
|
1175
|
-
}
|
|
1171
|
+
}, "strip", z.ZodTypeAny, {
|
|
1176
1172
|
message: string;
|
|
1177
1173
|
created_at: string;
|
|
1178
1174
|
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
@@ -1181,12 +1177,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1181
1177
|
created_at: string;
|
|
1182
1178
|
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
1183
1179
|
}>>>;
|
|
1184
|
-
unknown_issue_with_phone: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1180
|
+
unknown_issue_with_phone: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1185
1181
|
message: z.ZodString;
|
|
1186
1182
|
created_at: z.ZodString;
|
|
1187
|
-
}
|
|
1183
|
+
} & {
|
|
1188
1184
|
warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
|
|
1189
|
-
}
|
|
1185
|
+
}, "strip", z.ZodTypeAny, {
|
|
1190
1186
|
message: string;
|
|
1191
1187
|
created_at: string;
|
|
1192
1188
|
warning_code: "unknown_issue_with_phone";
|
|
@@ -1195,12 +1191,12 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1195
1191
|
created_at: string;
|
|
1196
1192
|
warning_code: "unknown_issue_with_phone";
|
|
1197
1193
|
}>>>;
|
|
1198
|
-
lockly_time_zone_not_configured: z.ZodNullable<z.ZodOptional<z.ZodObject<
|
|
1194
|
+
lockly_time_zone_not_configured: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1199
1195
|
message: z.ZodString;
|
|
1200
1196
|
created_at: z.ZodString;
|
|
1201
|
-
}
|
|
1197
|
+
} & {
|
|
1202
1198
|
warning_code: z.ZodLiteral<"lockly_time_zone_not_configured">;
|
|
1203
|
-
}
|
|
1199
|
+
}, "strip", z.ZodTypeAny, {
|
|
1204
1200
|
message: string;
|
|
1205
1201
|
created_at: string;
|
|
1206
1202
|
warning_code: "lockly_time_zone_not_configured";
|
|
@@ -1549,14 +1545,14 @@ export declare const common_device_properties: z.ZodObject<{
|
|
|
1549
1545
|
noise_level_decibels?: number | undefined;
|
|
1550
1546
|
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
1551
1547
|
}>;
|
|
1552
|
-
export declare const device_and_connected_account_error_options: (z.ZodObject<
|
|
1548
|
+
export declare const device_and_connected_account_error_options: (z.ZodObject<{
|
|
1553
1549
|
created_at: z.ZodString;
|
|
1554
1550
|
message: z.ZodString;
|
|
1555
1551
|
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1556
1552
|
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1557
|
-
}
|
|
1553
|
+
} & {
|
|
1558
1554
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
1559
|
-
}
|
|
1555
|
+
}, "strip", z.ZodTypeAny, {
|
|
1560
1556
|
message: string;
|
|
1561
1557
|
created_at: string;
|
|
1562
1558
|
error_code: "account_disconnected";
|
|
@@ -1568,14 +1564,14 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1568
1564
|
error_code: "account_disconnected";
|
|
1569
1565
|
is_connected_account_error?: boolean | undefined;
|
|
1570
1566
|
is_bridge_error?: boolean | undefined;
|
|
1571
|
-
}> | z.ZodObject<
|
|
1567
|
+
}> | z.ZodObject<{
|
|
1572
1568
|
created_at: z.ZodString;
|
|
1573
1569
|
message: z.ZodString;
|
|
1574
1570
|
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1575
1571
|
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1576
|
-
}
|
|
1572
|
+
} & {
|
|
1577
1573
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
1578
|
-
}
|
|
1574
|
+
}, "strip", z.ZodTypeAny, {
|
|
1579
1575
|
message: string;
|
|
1580
1576
|
created_at: string;
|
|
1581
1577
|
error_code: "invalid_credentials";
|
|
@@ -1587,14 +1583,14 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1587
1583
|
error_code: "invalid_credentials";
|
|
1588
1584
|
is_connected_account_error?: boolean | undefined;
|
|
1589
1585
|
is_bridge_error?: boolean | undefined;
|
|
1590
|
-
}> | z.ZodObject<
|
|
1586
|
+
}> | z.ZodObject<{
|
|
1591
1587
|
created_at: z.ZodString;
|
|
1592
1588
|
message: z.ZodString;
|
|
1593
1589
|
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1594
1590
|
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1595
|
-
}
|
|
1591
|
+
} & {
|
|
1596
1592
|
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
1597
|
-
}
|
|
1593
|
+
}, "strip", z.ZodTypeAny, {
|
|
1598
1594
|
message: string;
|
|
1599
1595
|
created_at: string;
|
|
1600
1596
|
error_code: "bridge_disconnected";
|
|
@@ -1606,12 +1602,12 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1606
1602
|
error_code: "bridge_disconnected";
|
|
1607
1603
|
is_connected_account_error?: boolean | undefined;
|
|
1608
1604
|
is_bridge_error?: boolean | undefined;
|
|
1609
|
-
}> | z.ZodObject<
|
|
1605
|
+
}> | z.ZodObject<{
|
|
1610
1606
|
created_at: z.ZodString;
|
|
1611
1607
|
message: z.ZodString;
|
|
1612
1608
|
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
1613
1609
|
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
1614
|
-
}
|
|
1610
|
+
} & {
|
|
1615
1611
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
1616
1612
|
salto_ks_metadata: z.ZodObject<{
|
|
1617
1613
|
sites: z.ZodArray<z.ZodObject<{
|
|
@@ -1645,7 +1641,7 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1645
1641
|
site_user_subscription_limit: number;
|
|
1646
1642
|
}[];
|
|
1647
1643
|
}>;
|
|
1648
|
-
}
|
|
1644
|
+
}, "strip", z.ZodTypeAny, {
|
|
1649
1645
|
message: string;
|
|
1650
1646
|
created_at: string;
|
|
1651
1647
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
@@ -1673,13 +1669,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1673
1669
|
};
|
|
1674
1670
|
is_connected_account_error?: boolean | undefined;
|
|
1675
1671
|
is_bridge_error?: boolean | undefined;
|
|
1676
|
-
}> | z.ZodObject<
|
|
1672
|
+
}> | z.ZodObject<{
|
|
1677
1673
|
message: z.ZodString;
|
|
1678
1674
|
is_device_error: z.ZodLiteral<true>;
|
|
1679
1675
|
created_at: z.ZodString;
|
|
1680
|
-
}
|
|
1676
|
+
} & {
|
|
1681
1677
|
error_code: z.ZodLiteral<"device_offline">;
|
|
1682
|
-
}
|
|
1678
|
+
}, "strip", z.ZodTypeAny, {
|
|
1683
1679
|
message: string;
|
|
1684
1680
|
created_at: string;
|
|
1685
1681
|
error_code: "device_offline";
|
|
@@ -1689,13 +1685,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1689
1685
|
created_at: string;
|
|
1690
1686
|
error_code: "device_offline";
|
|
1691
1687
|
is_device_error: true;
|
|
1692
|
-
}> | z.ZodObject<
|
|
1688
|
+
}> | z.ZodObject<{
|
|
1693
1689
|
message: z.ZodString;
|
|
1694
1690
|
is_device_error: z.ZodLiteral<true>;
|
|
1695
1691
|
created_at: z.ZodString;
|
|
1696
|
-
}
|
|
1692
|
+
} & {
|
|
1697
1693
|
error_code: z.ZodLiteral<"device_removed">;
|
|
1698
|
-
}
|
|
1694
|
+
}, "strip", z.ZodTypeAny, {
|
|
1699
1695
|
message: string;
|
|
1700
1696
|
created_at: string;
|
|
1701
1697
|
error_code: "device_removed";
|
|
@@ -1705,13 +1701,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1705
1701
|
created_at: string;
|
|
1706
1702
|
error_code: "device_removed";
|
|
1707
1703
|
is_device_error: true;
|
|
1708
|
-
}> | z.ZodObject<
|
|
1704
|
+
}> | z.ZodObject<{
|
|
1709
1705
|
message: z.ZodString;
|
|
1710
1706
|
is_device_error: z.ZodLiteral<true>;
|
|
1711
1707
|
created_at: z.ZodString;
|
|
1712
|
-
}
|
|
1708
|
+
} & {
|
|
1713
1709
|
error_code: z.ZodLiteral<"hub_disconnected">;
|
|
1714
|
-
}
|
|
1710
|
+
}, "strip", z.ZodTypeAny, {
|
|
1715
1711
|
message: string;
|
|
1716
1712
|
created_at: string;
|
|
1717
1713
|
error_code: "hub_disconnected";
|
|
@@ -1721,13 +1717,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1721
1717
|
created_at: string;
|
|
1722
1718
|
error_code: "hub_disconnected";
|
|
1723
1719
|
is_device_error: true;
|
|
1724
|
-
}> | z.ZodObject<
|
|
1720
|
+
}> | z.ZodObject<{
|
|
1725
1721
|
message: z.ZodString;
|
|
1726
1722
|
is_device_error: z.ZodLiteral<true>;
|
|
1727
1723
|
created_at: z.ZodString;
|
|
1728
|
-
}
|
|
1724
|
+
} & {
|
|
1729
1725
|
error_code: z.ZodLiteral<"device_disconnected">;
|
|
1730
|
-
}
|
|
1726
|
+
}, "strip", z.ZodTypeAny, {
|
|
1731
1727
|
message: string;
|
|
1732
1728
|
created_at: string;
|
|
1733
1729
|
error_code: "device_disconnected";
|
|
@@ -1737,15 +1733,14 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1737
1733
|
created_at: string;
|
|
1738
1734
|
error_code: "device_disconnected";
|
|
1739
1735
|
is_device_error: true;
|
|
1740
|
-
}> | z.ZodObject<
|
|
1736
|
+
}> | z.ZodObject<{
|
|
1741
1737
|
message: z.ZodString;
|
|
1742
|
-
is_device_error: z.ZodLiteral<true>;
|
|
1743
1738
|
created_at: z.ZodString;
|
|
1744
|
-
}
|
|
1739
|
+
} & {
|
|
1745
1740
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
1746
1741
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
1747
1742
|
is_device_error: z.ZodLiteral<false>;
|
|
1748
|
-
}
|
|
1743
|
+
}, "strip", z.ZodTypeAny, {
|
|
1749
1744
|
message: string;
|
|
1750
1745
|
created_at: string;
|
|
1751
1746
|
error_code: "account_disconnected";
|
|
@@ -1757,13 +1752,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1757
1752
|
error_code: "account_disconnected";
|
|
1758
1753
|
is_connected_account_error: true;
|
|
1759
1754
|
is_device_error: false;
|
|
1760
|
-
}> | z.ZodObject<
|
|
1755
|
+
}> | z.ZodObject<{
|
|
1761
1756
|
message: z.ZodString;
|
|
1762
1757
|
is_device_error: z.ZodLiteral<true>;
|
|
1763
1758
|
created_at: z.ZodString;
|
|
1764
|
-
}
|
|
1759
|
+
} & {
|
|
1765
1760
|
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
1766
|
-
}
|
|
1761
|
+
}, "strip", z.ZodTypeAny, {
|
|
1767
1762
|
message: string;
|
|
1768
1763
|
created_at: string;
|
|
1769
1764
|
error_code: "empty_backup_access_code_pool";
|
|
@@ -1773,13 +1768,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1773
1768
|
created_at: string;
|
|
1774
1769
|
error_code: "empty_backup_access_code_pool";
|
|
1775
1770
|
is_device_error: true;
|
|
1776
|
-
}> | z.ZodObject<
|
|
1771
|
+
}> | z.ZodObject<{
|
|
1777
1772
|
message: z.ZodString;
|
|
1778
1773
|
is_device_error: z.ZodLiteral<true>;
|
|
1779
1774
|
created_at: z.ZodString;
|
|
1780
|
-
}
|
|
1775
|
+
} & {
|
|
1781
1776
|
error_code: z.ZodLiteral<"august_lock_not_authorized">;
|
|
1782
|
-
}
|
|
1777
|
+
}, "strip", z.ZodTypeAny, {
|
|
1783
1778
|
message: string;
|
|
1784
1779
|
created_at: string;
|
|
1785
1780
|
error_code: "august_lock_not_authorized";
|
|
@@ -1789,13 +1784,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1789
1784
|
created_at: string;
|
|
1790
1785
|
error_code: "august_lock_not_authorized";
|
|
1791
1786
|
is_device_error: true;
|
|
1792
|
-
}> | z.ZodObject<
|
|
1787
|
+
}> | z.ZodObject<{
|
|
1793
1788
|
message: z.ZodString;
|
|
1794
1789
|
is_device_error: z.ZodLiteral<true>;
|
|
1795
1790
|
created_at: z.ZodString;
|
|
1796
|
-
}
|
|
1791
|
+
} & {
|
|
1797
1792
|
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
1798
|
-
}
|
|
1793
|
+
}, "strip", z.ZodTypeAny, {
|
|
1799
1794
|
message: string;
|
|
1800
1795
|
created_at: string;
|
|
1801
1796
|
error_code: "august_lock_missing_bridge";
|
|
@@ -1805,15 +1800,14 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1805
1800
|
created_at: string;
|
|
1806
1801
|
error_code: "august_lock_missing_bridge";
|
|
1807
1802
|
is_device_error: true;
|
|
1808
|
-
}> | z.ZodObject<
|
|
1803
|
+
}> | z.ZodObject<{
|
|
1809
1804
|
message: z.ZodString;
|
|
1810
|
-
is_device_error: z.ZodLiteral<true>;
|
|
1811
1805
|
created_at: z.ZodString;
|
|
1812
|
-
}
|
|
1806
|
+
} & {
|
|
1813
1807
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
1814
1808
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
1815
1809
|
is_device_error: z.ZodLiteral<false>;
|
|
1816
|
-
}
|
|
1810
|
+
}, "strip", z.ZodTypeAny, {
|
|
1817
1811
|
message: string;
|
|
1818
1812
|
created_at: string;
|
|
1819
1813
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
@@ -1825,13 +1819,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1825
1819
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1826
1820
|
is_connected_account_error: true;
|
|
1827
1821
|
is_device_error: false;
|
|
1828
|
-
}> | z.ZodObject<
|
|
1822
|
+
}> | z.ZodObject<{
|
|
1829
1823
|
message: z.ZodString;
|
|
1830
1824
|
is_device_error: z.ZodLiteral<true>;
|
|
1831
1825
|
created_at: z.ZodString;
|
|
1832
|
-
}
|
|
1826
|
+
} & {
|
|
1833
1827
|
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
1834
|
-
}
|
|
1828
|
+
}, "strip", z.ZodTypeAny, {
|
|
1835
1829
|
message: string;
|
|
1836
1830
|
created_at: string;
|
|
1837
1831
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
@@ -1841,13 +1835,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1841
1835
|
created_at: string;
|
|
1842
1836
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
1843
1837
|
is_device_error: true;
|
|
1844
|
-
}> | z.ZodObject<
|
|
1838
|
+
}> | z.ZodObject<{
|
|
1845
1839
|
message: z.ZodString;
|
|
1846
1840
|
is_device_error: z.ZodLiteral<true>;
|
|
1847
1841
|
created_at: z.ZodString;
|
|
1848
|
-
}
|
|
1842
|
+
} & {
|
|
1849
1843
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
1850
|
-
}
|
|
1844
|
+
}, "strip", z.ZodTypeAny, {
|
|
1851
1845
|
message: string;
|
|
1852
1846
|
created_at: string;
|
|
1853
1847
|
error_code: "missing_device_credentials";
|
|
@@ -1857,13 +1851,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1857
1851
|
created_at: string;
|
|
1858
1852
|
error_code: "missing_device_credentials";
|
|
1859
1853
|
is_device_error: true;
|
|
1860
|
-
}> | z.ZodObject<
|
|
1854
|
+
}> | z.ZodObject<{
|
|
1861
1855
|
message: z.ZodString;
|
|
1862
1856
|
is_device_error: z.ZodLiteral<true>;
|
|
1863
1857
|
created_at: z.ZodString;
|
|
1864
|
-
}
|
|
1858
|
+
} & {
|
|
1865
1859
|
error_code: z.ZodLiteral<"auxiliary_heat_running">;
|
|
1866
|
-
}
|
|
1860
|
+
}, "strip", z.ZodTypeAny, {
|
|
1867
1861
|
message: string;
|
|
1868
1862
|
created_at: string;
|
|
1869
1863
|
error_code: "auxiliary_heat_running";
|
|
@@ -1873,13 +1867,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1873
1867
|
created_at: string;
|
|
1874
1868
|
error_code: "auxiliary_heat_running";
|
|
1875
1869
|
is_device_error: true;
|
|
1876
|
-
}> | z.ZodObject<
|
|
1870
|
+
}> | z.ZodObject<{
|
|
1877
1871
|
message: z.ZodString;
|
|
1878
1872
|
is_device_error: z.ZodLiteral<true>;
|
|
1879
1873
|
created_at: z.ZodString;
|
|
1880
|
-
}
|
|
1874
|
+
} & {
|
|
1881
1875
|
error_code: z.ZodLiteral<"subscription_required">;
|
|
1882
|
-
}
|
|
1876
|
+
}, "strip", z.ZodTypeAny, {
|
|
1883
1877
|
message: string;
|
|
1884
1878
|
created_at: string;
|
|
1885
1879
|
error_code: "subscription_required";
|
|
@@ -1889,13 +1883,13 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1889
1883
|
created_at: string;
|
|
1890
1884
|
error_code: "subscription_required";
|
|
1891
1885
|
is_device_error: true;
|
|
1892
|
-
}> | z.ZodObject<
|
|
1886
|
+
}> | z.ZodObject<{
|
|
1893
1887
|
message: z.ZodString;
|
|
1894
1888
|
is_device_error: z.ZodLiteral<true>;
|
|
1895
1889
|
created_at: z.ZodString;
|
|
1896
|
-
}
|
|
1890
|
+
} & {
|
|
1897
1891
|
error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
|
|
1898
|
-
}
|
|
1892
|
+
}, "strip", z.ZodTypeAny, {
|
|
1899
1893
|
message: string;
|
|
1900
1894
|
created_at: string;
|
|
1901
1895
|
error_code: "lockly_missing_wifi_bridge";
|
|
@@ -1906,7 +1900,7 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<z.
|
|
|
1906
1900
|
error_code: "lockly_missing_wifi_bridge";
|
|
1907
1901
|
is_device_error: true;
|
|
1908
1902
|
}>)[];
|
|
1909
|
-
export declare const device: z.ZodObject<
|
|
1903
|
+
export declare const device: z.ZodObject<{
|
|
1910
1904
|
device_id: z.ZodString;
|
|
1911
1905
|
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat" | "sensi_thermostat" | "smartthings_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
1912
1906
|
nickname: z.ZodOptional<z.ZodString>;
|
|
@@ -3331,7 +3325,7 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3331
3325
|
device_name: string;
|
|
3332
3326
|
product_type: string;
|
|
3333
3327
|
} | undefined;
|
|
3334
|
-
}>>, z.ZodIntersection<z.ZodObject<
|
|
3328
|
+
}>>, z.ZodIntersection<z.ZodObject<{
|
|
3335
3329
|
_experimental_supported_code_from_access_codes_lengths: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
3336
3330
|
code_constraints: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
3337
3331
|
constraint_type: z.ZodEnum<["no_zeros", "cannot_start_with_12", "no_triple_consecutive_ints", "cannot_specify_pin_code", "pin_code_matches_existing_set", "start_date_in_future", "no_ascending_or_descending_sequence", "at_least_three_unique_digits", "cannot_contain_089", "cannot_contain_0789"]>;
|
|
@@ -3356,7 +3350,7 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3356
3350
|
max_active_codes_supported: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3357
3351
|
supports_backup_access_code_pool: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3358
3352
|
has_native_entry_events: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3359
|
-
}
|
|
3353
|
+
} & {
|
|
3360
3354
|
locked: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3361
3355
|
keypad_battery: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
3362
3356
|
level: z.ZodNumber;
|
|
@@ -3366,7 +3360,7 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3366
3360
|
level: number;
|
|
3367
3361
|
}>>>;
|
|
3368
3362
|
door_open: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
3369
|
-
}
|
|
3363
|
+
}, "strip", z.ZodTypeAny, {
|
|
3370
3364
|
_experimental_supported_code_from_access_codes_lengths?: number[] | undefined;
|
|
3371
3365
|
code_constraints?: ({
|
|
3372
3366
|
constraint_type: "no_zeros" | "cannot_start_with_12" | "no_triple_consecutive_ints" | "cannot_specify_pin_code" | "pin_code_matches_existing_set" | "start_date_in_future" | "no_ascending_or_descending_sequence" | "at_least_three_unique_digits" | "cannot_contain_089" | "cannot_contain_0789";
|
|
@@ -4039,15 +4033,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4039
4033
|
}>>;
|
|
4040
4034
|
connected_account_id: z.ZodString;
|
|
4041
4035
|
workspace_id: z.ZodString;
|
|
4042
|
-
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<
|
|
4036
|
+
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
4043
4037
|
message: z.ZodString;
|
|
4044
|
-
is_device_error: z.ZodLiteral<true>;
|
|
4045
4038
|
created_at: z.ZodString;
|
|
4046
|
-
}
|
|
4039
|
+
} & {
|
|
4047
4040
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
4048
4041
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
4049
4042
|
is_device_error: z.ZodLiteral<false>;
|
|
4050
|
-
}
|
|
4043
|
+
}, "strip", z.ZodTypeAny, {
|
|
4051
4044
|
message: string;
|
|
4052
4045
|
created_at: string;
|
|
4053
4046
|
error_code: "account_disconnected";
|
|
@@ -4059,15 +4052,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4059
4052
|
error_code: "account_disconnected";
|
|
4060
4053
|
is_connected_account_error: true;
|
|
4061
4054
|
is_device_error: false;
|
|
4062
|
-
}>, z.ZodObject<
|
|
4055
|
+
}>, z.ZodObject<{
|
|
4063
4056
|
message: z.ZodString;
|
|
4064
|
-
is_device_error: z.ZodLiteral<true>;
|
|
4065
4057
|
created_at: z.ZodString;
|
|
4066
|
-
}
|
|
4058
|
+
} & {
|
|
4067
4059
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
4068
4060
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
4069
4061
|
is_device_error: z.ZodLiteral<false>;
|
|
4070
|
-
}
|
|
4062
|
+
}, "strip", z.ZodTypeAny, {
|
|
4071
4063
|
message: string;
|
|
4072
4064
|
created_at: string;
|
|
4073
4065
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
@@ -4079,13 +4071,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4079
4071
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
4080
4072
|
is_connected_account_error: true;
|
|
4081
4073
|
is_device_error: false;
|
|
4082
|
-
}>, z.ZodObject<
|
|
4074
|
+
}>, z.ZodObject<{
|
|
4083
4075
|
message: z.ZodString;
|
|
4084
4076
|
is_device_error: z.ZodLiteral<true>;
|
|
4085
4077
|
created_at: z.ZodString;
|
|
4086
|
-
}
|
|
4078
|
+
} & {
|
|
4087
4079
|
error_code: z.ZodLiteral<"device_offline">;
|
|
4088
|
-
}
|
|
4080
|
+
}, "strip", z.ZodTypeAny, {
|
|
4089
4081
|
message: string;
|
|
4090
4082
|
created_at: string;
|
|
4091
4083
|
error_code: "device_offline";
|
|
@@ -4095,13 +4087,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4095
4087
|
created_at: string;
|
|
4096
4088
|
error_code: "device_offline";
|
|
4097
4089
|
is_device_error: true;
|
|
4098
|
-
}>, z.ZodObject<
|
|
4090
|
+
}>, z.ZodObject<{
|
|
4099
4091
|
message: z.ZodString;
|
|
4100
4092
|
is_device_error: z.ZodLiteral<true>;
|
|
4101
4093
|
created_at: z.ZodString;
|
|
4102
|
-
}
|
|
4094
|
+
} & {
|
|
4103
4095
|
error_code: z.ZodLiteral<"device_removed">;
|
|
4104
|
-
}
|
|
4096
|
+
}, "strip", z.ZodTypeAny, {
|
|
4105
4097
|
message: string;
|
|
4106
4098
|
created_at: string;
|
|
4107
4099
|
error_code: "device_removed";
|
|
@@ -4111,13 +4103,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4111
4103
|
created_at: string;
|
|
4112
4104
|
error_code: "device_removed";
|
|
4113
4105
|
is_device_error: true;
|
|
4114
|
-
}>, z.ZodObject<
|
|
4106
|
+
}>, z.ZodObject<{
|
|
4115
4107
|
message: z.ZodString;
|
|
4116
4108
|
is_device_error: z.ZodLiteral<true>;
|
|
4117
4109
|
created_at: z.ZodString;
|
|
4118
|
-
}
|
|
4110
|
+
} & {
|
|
4119
4111
|
error_code: z.ZodLiteral<"hub_disconnected">;
|
|
4120
|
-
}
|
|
4112
|
+
}, "strip", z.ZodTypeAny, {
|
|
4121
4113
|
message: string;
|
|
4122
4114
|
created_at: string;
|
|
4123
4115
|
error_code: "hub_disconnected";
|
|
@@ -4127,13 +4119,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4127
4119
|
created_at: string;
|
|
4128
4120
|
error_code: "hub_disconnected";
|
|
4129
4121
|
is_device_error: true;
|
|
4130
|
-
}>, z.ZodObject<
|
|
4122
|
+
}>, z.ZodObject<{
|
|
4131
4123
|
message: z.ZodString;
|
|
4132
4124
|
is_device_error: z.ZodLiteral<true>;
|
|
4133
4125
|
created_at: z.ZodString;
|
|
4134
|
-
}
|
|
4126
|
+
} & {
|
|
4135
4127
|
error_code: z.ZodLiteral<"device_disconnected">;
|
|
4136
|
-
}
|
|
4128
|
+
}, "strip", z.ZodTypeAny, {
|
|
4137
4129
|
message: string;
|
|
4138
4130
|
created_at: string;
|
|
4139
4131
|
error_code: "device_disconnected";
|
|
@@ -4143,13 +4135,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4143
4135
|
created_at: string;
|
|
4144
4136
|
error_code: "device_disconnected";
|
|
4145
4137
|
is_device_error: true;
|
|
4146
|
-
}>, z.ZodObject<
|
|
4138
|
+
}>, z.ZodObject<{
|
|
4147
4139
|
message: z.ZodString;
|
|
4148
4140
|
is_device_error: z.ZodLiteral<true>;
|
|
4149
4141
|
created_at: z.ZodString;
|
|
4150
|
-
}
|
|
4142
|
+
} & {
|
|
4151
4143
|
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
4152
|
-
}
|
|
4144
|
+
}, "strip", z.ZodTypeAny, {
|
|
4153
4145
|
message: string;
|
|
4154
4146
|
created_at: string;
|
|
4155
4147
|
error_code: "empty_backup_access_code_pool";
|
|
@@ -4159,13 +4151,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4159
4151
|
created_at: string;
|
|
4160
4152
|
error_code: "empty_backup_access_code_pool";
|
|
4161
4153
|
is_device_error: true;
|
|
4162
|
-
}>, z.ZodObject<
|
|
4154
|
+
}>, z.ZodObject<{
|
|
4163
4155
|
message: z.ZodString;
|
|
4164
4156
|
is_device_error: z.ZodLiteral<true>;
|
|
4165
4157
|
created_at: z.ZodString;
|
|
4166
|
-
}
|
|
4158
|
+
} & {
|
|
4167
4159
|
error_code: z.ZodLiteral<"august_lock_not_authorized">;
|
|
4168
|
-
}
|
|
4160
|
+
}, "strip", z.ZodTypeAny, {
|
|
4169
4161
|
message: string;
|
|
4170
4162
|
created_at: string;
|
|
4171
4163
|
error_code: "august_lock_not_authorized";
|
|
@@ -4175,13 +4167,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4175
4167
|
created_at: string;
|
|
4176
4168
|
error_code: "august_lock_not_authorized";
|
|
4177
4169
|
is_device_error: true;
|
|
4178
|
-
}>, z.ZodObject<
|
|
4170
|
+
}>, z.ZodObject<{
|
|
4179
4171
|
message: z.ZodString;
|
|
4180
4172
|
is_device_error: z.ZodLiteral<true>;
|
|
4181
4173
|
created_at: z.ZodString;
|
|
4182
|
-
}
|
|
4174
|
+
} & {
|
|
4183
4175
|
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
4184
|
-
}
|
|
4176
|
+
}, "strip", z.ZodTypeAny, {
|
|
4185
4177
|
message: string;
|
|
4186
4178
|
created_at: string;
|
|
4187
4179
|
error_code: "august_lock_missing_bridge";
|
|
@@ -4191,13 +4183,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4191
4183
|
created_at: string;
|
|
4192
4184
|
error_code: "august_lock_missing_bridge";
|
|
4193
4185
|
is_device_error: true;
|
|
4194
|
-
}>, z.ZodObject<
|
|
4186
|
+
}>, z.ZodObject<{
|
|
4195
4187
|
message: z.ZodString;
|
|
4196
4188
|
is_device_error: z.ZodLiteral<true>;
|
|
4197
4189
|
created_at: z.ZodString;
|
|
4198
|
-
}
|
|
4190
|
+
} & {
|
|
4199
4191
|
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
4200
|
-
}
|
|
4192
|
+
}, "strip", z.ZodTypeAny, {
|
|
4201
4193
|
message: string;
|
|
4202
4194
|
created_at: string;
|
|
4203
4195
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
@@ -4207,13 +4199,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4207
4199
|
created_at: string;
|
|
4208
4200
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
4209
4201
|
is_device_error: true;
|
|
4210
|
-
}>, z.ZodObject<
|
|
4202
|
+
}>, z.ZodObject<{
|
|
4211
4203
|
message: z.ZodString;
|
|
4212
4204
|
is_device_error: z.ZodLiteral<true>;
|
|
4213
4205
|
created_at: z.ZodString;
|
|
4214
|
-
}
|
|
4206
|
+
} & {
|
|
4215
4207
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
4216
|
-
}
|
|
4208
|
+
}, "strip", z.ZodTypeAny, {
|
|
4217
4209
|
message: string;
|
|
4218
4210
|
created_at: string;
|
|
4219
4211
|
error_code: "missing_device_credentials";
|
|
@@ -4223,13 +4215,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4223
4215
|
created_at: string;
|
|
4224
4216
|
error_code: "missing_device_credentials";
|
|
4225
4217
|
is_device_error: true;
|
|
4226
|
-
}>, z.ZodObject<
|
|
4218
|
+
}>, z.ZodObject<{
|
|
4227
4219
|
message: z.ZodString;
|
|
4228
4220
|
is_device_error: z.ZodLiteral<true>;
|
|
4229
4221
|
created_at: z.ZodString;
|
|
4230
|
-
}
|
|
4222
|
+
} & {
|
|
4231
4223
|
error_code: z.ZodLiteral<"auxiliary_heat_running">;
|
|
4232
|
-
}
|
|
4224
|
+
}, "strip", z.ZodTypeAny, {
|
|
4233
4225
|
message: string;
|
|
4234
4226
|
created_at: string;
|
|
4235
4227
|
error_code: "auxiliary_heat_running";
|
|
@@ -4239,13 +4231,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4239
4231
|
created_at: string;
|
|
4240
4232
|
error_code: "auxiliary_heat_running";
|
|
4241
4233
|
is_device_error: true;
|
|
4242
|
-
}>, z.ZodObject<
|
|
4234
|
+
}>, z.ZodObject<{
|
|
4243
4235
|
message: z.ZodString;
|
|
4244
4236
|
is_device_error: z.ZodLiteral<true>;
|
|
4245
4237
|
created_at: z.ZodString;
|
|
4246
|
-
}
|
|
4238
|
+
} & {
|
|
4247
4239
|
error_code: z.ZodLiteral<"subscription_required">;
|
|
4248
|
-
}
|
|
4240
|
+
}, "strip", z.ZodTypeAny, {
|
|
4249
4241
|
message: string;
|
|
4250
4242
|
created_at: string;
|
|
4251
4243
|
error_code: "subscription_required";
|
|
@@ -4255,13 +4247,13 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4255
4247
|
created_at: string;
|
|
4256
4248
|
error_code: "subscription_required";
|
|
4257
4249
|
is_device_error: true;
|
|
4258
|
-
}>, z.ZodObject<
|
|
4250
|
+
}>, z.ZodObject<{
|
|
4259
4251
|
message: z.ZodString;
|
|
4260
4252
|
is_device_error: z.ZodLiteral<true>;
|
|
4261
4253
|
created_at: z.ZodString;
|
|
4262
|
-
}
|
|
4254
|
+
} & {
|
|
4263
4255
|
error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
|
|
4264
|
-
}
|
|
4256
|
+
}, "strip", z.ZodTypeAny, {
|
|
4265
4257
|
message: string;
|
|
4266
4258
|
created_at: string;
|
|
4267
4259
|
error_code: "lockly_missing_wifi_bridge";
|
|
@@ -4271,14 +4263,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4271
4263
|
created_at: string;
|
|
4272
4264
|
error_code: "lockly_missing_wifi_bridge";
|
|
4273
4265
|
is_device_error: true;
|
|
4274
|
-
}>, ...(z.ZodObject<
|
|
4266
|
+
}>, ...(z.ZodObject<{
|
|
4275
4267
|
created_at: z.ZodString;
|
|
4276
4268
|
message: z.ZodString;
|
|
4277
4269
|
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
4278
4270
|
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
4279
|
-
}
|
|
4271
|
+
} & {
|
|
4280
4272
|
error_code: z.ZodLiteral<"account_disconnected">;
|
|
4281
|
-
}
|
|
4273
|
+
}, "strip", z.ZodTypeAny, {
|
|
4282
4274
|
message: string;
|
|
4283
4275
|
created_at: string;
|
|
4284
4276
|
error_code: "account_disconnected";
|
|
@@ -4290,14 +4282,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4290
4282
|
error_code: "account_disconnected";
|
|
4291
4283
|
is_connected_account_error?: boolean | undefined;
|
|
4292
4284
|
is_bridge_error?: boolean | undefined;
|
|
4293
|
-
}> | z.ZodObject<
|
|
4285
|
+
}> | z.ZodObject<{
|
|
4294
4286
|
created_at: z.ZodString;
|
|
4295
4287
|
message: z.ZodString;
|
|
4296
4288
|
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
4297
4289
|
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
4298
|
-
}
|
|
4290
|
+
} & {
|
|
4299
4291
|
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
4300
|
-
}
|
|
4292
|
+
}, "strip", z.ZodTypeAny, {
|
|
4301
4293
|
message: string;
|
|
4302
4294
|
created_at: string;
|
|
4303
4295
|
error_code: "invalid_credentials";
|
|
@@ -4309,14 +4301,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4309
4301
|
error_code: "invalid_credentials";
|
|
4310
4302
|
is_connected_account_error?: boolean | undefined;
|
|
4311
4303
|
is_bridge_error?: boolean | undefined;
|
|
4312
|
-
}> | z.ZodObject<
|
|
4304
|
+
}> | z.ZodObject<{
|
|
4313
4305
|
created_at: z.ZodString;
|
|
4314
4306
|
message: z.ZodString;
|
|
4315
4307
|
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
4316
4308
|
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
4317
|
-
}
|
|
4309
|
+
} & {
|
|
4318
4310
|
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
4319
|
-
}
|
|
4311
|
+
}, "strip", z.ZodTypeAny, {
|
|
4320
4312
|
message: string;
|
|
4321
4313
|
created_at: string;
|
|
4322
4314
|
error_code: "bridge_disconnected";
|
|
@@ -4328,12 +4320,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4328
4320
|
error_code: "bridge_disconnected";
|
|
4329
4321
|
is_connected_account_error?: boolean | undefined;
|
|
4330
4322
|
is_bridge_error?: boolean | undefined;
|
|
4331
|
-
}> | z.ZodObject<
|
|
4323
|
+
}> | z.ZodObject<{
|
|
4332
4324
|
created_at: z.ZodString;
|
|
4333
4325
|
message: z.ZodString;
|
|
4334
4326
|
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
4335
4327
|
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
4336
|
-
}
|
|
4328
|
+
} & {
|
|
4337
4329
|
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
4338
4330
|
salto_ks_metadata: z.ZodObject<{
|
|
4339
4331
|
sites: z.ZodArray<z.ZodObject<{
|
|
@@ -4367,7 +4359,7 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4367
4359
|
site_user_subscription_limit: number;
|
|
4368
4360
|
}[];
|
|
4369
4361
|
}>;
|
|
4370
|
-
}
|
|
4362
|
+
}, "strip", z.ZodTypeAny, {
|
|
4371
4363
|
message: string;
|
|
4372
4364
|
created_at: string;
|
|
4373
4365
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
@@ -4396,12 +4388,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4396
4388
|
is_connected_account_error?: boolean | undefined;
|
|
4397
4389
|
is_bridge_error?: boolean | undefined;
|
|
4398
4390
|
}>)[]]>, "many">;
|
|
4399
|
-
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<
|
|
4391
|
+
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
4400
4392
|
message: z.ZodString;
|
|
4401
4393
|
created_at: z.ZodString;
|
|
4402
|
-
}
|
|
4394
|
+
} & {
|
|
4403
4395
|
warning_code: z.ZodLiteral<"partial_backup_access_code_pool">;
|
|
4404
|
-
}
|
|
4396
|
+
}, "strip", z.ZodTypeAny, {
|
|
4405
4397
|
message: string;
|
|
4406
4398
|
created_at: string;
|
|
4407
4399
|
warning_code: "partial_backup_access_code_pool";
|
|
@@ -4409,12 +4401,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4409
4401
|
message: string;
|
|
4410
4402
|
created_at: string;
|
|
4411
4403
|
warning_code: "partial_backup_access_code_pool";
|
|
4412
|
-
}>, z.ZodObject<
|
|
4404
|
+
}>, z.ZodObject<{
|
|
4413
4405
|
message: z.ZodString;
|
|
4414
4406
|
created_at: z.ZodString;
|
|
4415
|
-
}
|
|
4407
|
+
} & {
|
|
4416
4408
|
warning_code: z.ZodLiteral<"many_active_backup_codes">;
|
|
4417
|
-
}
|
|
4409
|
+
}, "strip", z.ZodTypeAny, {
|
|
4418
4410
|
message: string;
|
|
4419
4411
|
created_at: string;
|
|
4420
4412
|
warning_code: "many_active_backup_codes";
|
|
@@ -4422,12 +4414,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4422
4414
|
message: string;
|
|
4423
4415
|
created_at: string;
|
|
4424
4416
|
warning_code: "many_active_backup_codes";
|
|
4425
|
-
}>, z.ZodObject<
|
|
4417
|
+
}>, z.ZodObject<{
|
|
4426
4418
|
message: z.ZodString;
|
|
4427
4419
|
created_at: z.ZodString;
|
|
4428
|
-
}
|
|
4420
|
+
} & {
|
|
4429
4421
|
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
4430
|
-
}
|
|
4422
|
+
}, "strip", z.ZodTypeAny, {
|
|
4431
4423
|
message: string;
|
|
4432
4424
|
created_at: string;
|
|
4433
4425
|
warning_code: "wyze_device_missing_gateway";
|
|
@@ -4435,12 +4427,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4435
4427
|
message: string;
|
|
4436
4428
|
created_at: string;
|
|
4437
4429
|
warning_code: "wyze_device_missing_gateway";
|
|
4438
|
-
}>, z.ZodObject<
|
|
4430
|
+
}>, z.ZodObject<{
|
|
4439
4431
|
message: z.ZodString;
|
|
4440
4432
|
created_at: z.ZodString;
|
|
4441
|
-
}
|
|
4433
|
+
} & {
|
|
4442
4434
|
warning_code: z.ZodLiteral<"functional_offline_device">;
|
|
4443
|
-
}
|
|
4435
|
+
}, "strip", z.ZodTypeAny, {
|
|
4444
4436
|
message: string;
|
|
4445
4437
|
created_at: string;
|
|
4446
4438
|
warning_code: "functional_offline_device";
|
|
@@ -4448,12 +4440,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4448
4440
|
message: string;
|
|
4449
4441
|
created_at: string;
|
|
4450
4442
|
warning_code: "functional_offline_device";
|
|
4451
|
-
}>, z.ZodObject<
|
|
4443
|
+
}>, z.ZodObject<{
|
|
4452
4444
|
message: z.ZodString;
|
|
4453
4445
|
created_at: z.ZodString;
|
|
4454
|
-
}
|
|
4446
|
+
} & {
|
|
4455
4447
|
warning_code: z.ZodLiteral<"third_party_integration_detected">;
|
|
4456
|
-
}
|
|
4448
|
+
}, "strip", z.ZodTypeAny, {
|
|
4457
4449
|
message: string;
|
|
4458
4450
|
created_at: string;
|
|
4459
4451
|
warning_code: "third_party_integration_detected";
|
|
@@ -4461,12 +4453,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4461
4453
|
message: string;
|
|
4462
4454
|
created_at: string;
|
|
4463
4455
|
warning_code: "third_party_integration_detected";
|
|
4464
|
-
}>, z.ZodObject<
|
|
4456
|
+
}>, z.ZodObject<{
|
|
4465
4457
|
message: z.ZodString;
|
|
4466
4458
|
created_at: z.ZodString;
|
|
4467
|
-
}
|
|
4459
|
+
} & {
|
|
4468
4460
|
warning_code: z.ZodLiteral<"nest_thermostat_in_manual_eco_mode">;
|
|
4469
|
-
}
|
|
4461
|
+
}, "strip", z.ZodTypeAny, {
|
|
4470
4462
|
message: string;
|
|
4471
4463
|
created_at: string;
|
|
4472
4464
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
@@ -4474,12 +4466,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4474
4466
|
message: string;
|
|
4475
4467
|
created_at: string;
|
|
4476
4468
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
4477
|
-
}>, z.ZodObject<
|
|
4469
|
+
}>, z.ZodObject<{
|
|
4478
4470
|
message: z.ZodString;
|
|
4479
4471
|
created_at: z.ZodString;
|
|
4480
|
-
}
|
|
4472
|
+
} & {
|
|
4481
4473
|
warning_code: z.ZodLiteral<"ttlock_lock_gateway_unlocking_not_enabled">;
|
|
4482
|
-
}
|
|
4474
|
+
}, "strip", z.ZodTypeAny, {
|
|
4483
4475
|
message: string;
|
|
4484
4476
|
created_at: string;
|
|
4485
4477
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
@@ -4487,12 +4479,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4487
4479
|
message: string;
|
|
4488
4480
|
created_at: string;
|
|
4489
4481
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
4490
|
-
}>, z.ZodObject<
|
|
4482
|
+
}>, z.ZodObject<{
|
|
4491
4483
|
message: z.ZodString;
|
|
4492
4484
|
created_at: z.ZodString;
|
|
4493
|
-
}
|
|
4485
|
+
} & {
|
|
4494
4486
|
warning_code: z.ZodLiteral<"ttlock_weak_gateway_signal">;
|
|
4495
|
-
}
|
|
4487
|
+
}, "strip", z.ZodTypeAny, {
|
|
4496
4488
|
message: string;
|
|
4497
4489
|
created_at: string;
|
|
4498
4490
|
warning_code: "ttlock_weak_gateway_signal";
|
|
@@ -4500,12 +4492,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4500
4492
|
message: string;
|
|
4501
4493
|
created_at: string;
|
|
4502
4494
|
warning_code: "ttlock_weak_gateway_signal";
|
|
4503
|
-
}>, z.ZodObject<
|
|
4495
|
+
}>, z.ZodObject<{
|
|
4504
4496
|
message: z.ZodString;
|
|
4505
4497
|
created_at: z.ZodString;
|
|
4506
|
-
}
|
|
4498
|
+
} & {
|
|
4507
4499
|
warning_code: z.ZodLiteral<"power_saving_mode">;
|
|
4508
|
-
}
|
|
4500
|
+
}, "strip", z.ZodTypeAny, {
|
|
4509
4501
|
message: string;
|
|
4510
4502
|
created_at: string;
|
|
4511
4503
|
warning_code: "power_saving_mode";
|
|
@@ -4513,12 +4505,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4513
4505
|
message: string;
|
|
4514
4506
|
created_at: string;
|
|
4515
4507
|
warning_code: "power_saving_mode";
|
|
4516
|
-
}>, z.ZodObject<
|
|
4508
|
+
}>, z.ZodObject<{
|
|
4517
4509
|
message: z.ZodString;
|
|
4518
4510
|
created_at: z.ZodString;
|
|
4519
|
-
}
|
|
4511
|
+
} & {
|
|
4520
4512
|
warning_code: z.ZodLiteral<"temperature_threshold_exceeded">;
|
|
4521
|
-
}
|
|
4513
|
+
}, "strip", z.ZodTypeAny, {
|
|
4522
4514
|
message: string;
|
|
4523
4515
|
created_at: string;
|
|
4524
4516
|
warning_code: "temperature_threshold_exceeded";
|
|
@@ -4526,12 +4518,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4526
4518
|
message: string;
|
|
4527
4519
|
created_at: string;
|
|
4528
4520
|
warning_code: "temperature_threshold_exceeded";
|
|
4529
|
-
}>, z.ZodObject<
|
|
4521
|
+
}>, z.ZodObject<{
|
|
4530
4522
|
message: z.ZodString;
|
|
4531
4523
|
created_at: z.ZodString;
|
|
4532
|
-
}
|
|
4524
|
+
} & {
|
|
4533
4525
|
warning_code: z.ZodLiteral<"device_communication_degraded">;
|
|
4534
|
-
}
|
|
4526
|
+
}, "strip", z.ZodTypeAny, {
|
|
4535
4527
|
message: string;
|
|
4536
4528
|
created_at: string;
|
|
4537
4529
|
warning_code: "device_communication_degraded";
|
|
@@ -4539,12 +4531,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4539
4531
|
message: string;
|
|
4540
4532
|
created_at: string;
|
|
4541
4533
|
warning_code: "device_communication_degraded";
|
|
4542
|
-
}>, z.ZodObject<
|
|
4534
|
+
}>, z.ZodObject<{
|
|
4543
4535
|
message: z.ZodString;
|
|
4544
4536
|
created_at: z.ZodString;
|
|
4545
|
-
}
|
|
4537
|
+
} & {
|
|
4546
4538
|
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
4547
|
-
}
|
|
4539
|
+
}, "strip", z.ZodTypeAny, {
|
|
4548
4540
|
message: string;
|
|
4549
4541
|
created_at: string;
|
|
4550
4542
|
warning_code: "scheduled_maintenance_window";
|
|
@@ -4552,12 +4544,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4552
4544
|
message: string;
|
|
4553
4545
|
created_at: string;
|
|
4554
4546
|
warning_code: "scheduled_maintenance_window";
|
|
4555
|
-
}>, z.ZodObject<
|
|
4547
|
+
}>, z.ZodObject<{
|
|
4556
4548
|
message: z.ZodString;
|
|
4557
4549
|
created_at: z.ZodString;
|
|
4558
|
-
}
|
|
4550
|
+
} & {
|
|
4559
4551
|
warning_code: z.ZodLiteral<"device_has_flaky_connection">;
|
|
4560
|
-
}
|
|
4552
|
+
}, "strip", z.ZodTypeAny, {
|
|
4561
4553
|
message: string;
|
|
4562
4554
|
created_at: string;
|
|
4563
4555
|
warning_code: "device_has_flaky_connection";
|
|
@@ -4565,12 +4557,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4565
4557
|
message: string;
|
|
4566
4558
|
created_at: string;
|
|
4567
4559
|
warning_code: "device_has_flaky_connection";
|
|
4568
|
-
}>, z.ZodObject<
|
|
4560
|
+
}>, z.ZodObject<{
|
|
4569
4561
|
message: z.ZodString;
|
|
4570
4562
|
created_at: z.ZodString;
|
|
4571
|
-
}
|
|
4563
|
+
} & {
|
|
4572
4564
|
warning_code: z.ZodLiteral<"salto_ks_office_mode">;
|
|
4573
|
-
}
|
|
4565
|
+
}, "strip", z.ZodTypeAny, {
|
|
4574
4566
|
message: string;
|
|
4575
4567
|
created_at: string;
|
|
4576
4568
|
warning_code: "salto_ks_office_mode";
|
|
@@ -4578,12 +4570,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4578
4570
|
message: string;
|
|
4579
4571
|
created_at: string;
|
|
4580
4572
|
warning_code: "salto_ks_office_mode";
|
|
4581
|
-
}>, z.ZodObject<
|
|
4573
|
+
}>, z.ZodObject<{
|
|
4582
4574
|
message: z.ZodString;
|
|
4583
4575
|
created_at: z.ZodString;
|
|
4584
|
-
}
|
|
4576
|
+
} & {
|
|
4585
4577
|
warning_code: z.ZodLiteral<"salto_ks_privacy_mode">;
|
|
4586
|
-
}
|
|
4578
|
+
}, "strip", z.ZodTypeAny, {
|
|
4587
4579
|
message: string;
|
|
4588
4580
|
created_at: string;
|
|
4589
4581
|
warning_code: "salto_ks_privacy_mode";
|
|
@@ -4591,12 +4583,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4591
4583
|
message: string;
|
|
4592
4584
|
created_at: string;
|
|
4593
4585
|
warning_code: "salto_ks_privacy_mode";
|
|
4594
|
-
}>, z.ZodObject<
|
|
4586
|
+
}>, z.ZodObject<{
|
|
4595
4587
|
message: z.ZodString;
|
|
4596
4588
|
created_at: z.ZodString;
|
|
4597
|
-
}
|
|
4589
|
+
} & {
|
|
4598
4590
|
warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
|
|
4599
|
-
}
|
|
4591
|
+
}, "strip", z.ZodTypeAny, {
|
|
4600
4592
|
message: string;
|
|
4601
4593
|
created_at: string;
|
|
4602
4594
|
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
@@ -4604,12 +4596,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4604
4596
|
message: string;
|
|
4605
4597
|
created_at: string;
|
|
4606
4598
|
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
4607
|
-
}>, z.ZodObject<
|
|
4599
|
+
}>, z.ZodObject<{
|
|
4608
4600
|
message: z.ZodString;
|
|
4609
4601
|
created_at: z.ZodString;
|
|
4610
|
-
}
|
|
4602
|
+
} & {
|
|
4611
4603
|
warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
|
|
4612
|
-
}
|
|
4604
|
+
}, "strip", z.ZodTypeAny, {
|
|
4613
4605
|
message: string;
|
|
4614
4606
|
created_at: string;
|
|
4615
4607
|
warning_code: "unknown_issue_with_phone";
|
|
@@ -4617,12 +4609,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4617
4609
|
message: string;
|
|
4618
4610
|
created_at: string;
|
|
4619
4611
|
warning_code: "unknown_issue_with_phone";
|
|
4620
|
-
}>, z.ZodObject<
|
|
4612
|
+
}>, z.ZodObject<{
|
|
4621
4613
|
message: z.ZodString;
|
|
4622
4614
|
created_at: z.ZodString;
|
|
4623
|
-
}
|
|
4615
|
+
} & {
|
|
4624
4616
|
warning_code: z.ZodLiteral<"lockly_time_zone_not_configured">;
|
|
4625
|
-
}
|
|
4617
|
+
}, "strip", z.ZodTypeAny, {
|
|
4626
4618
|
message: string;
|
|
4627
4619
|
created_at: string;
|
|
4628
4620
|
warning_code: "lockly_time_zone_not_configured";
|
|
@@ -4634,7 +4626,7 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4634
4626
|
created_at: z.ZodString;
|
|
4635
4627
|
is_managed: z.ZodLiteral<true>;
|
|
4636
4628
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
4637
|
-
}
|
|
4629
|
+
} & {
|
|
4638
4630
|
can_remotely_unlock: z.ZodOptional<z.ZodBoolean>;
|
|
4639
4631
|
can_remotely_lock: z.ZodOptional<z.ZodBoolean>;
|
|
4640
4632
|
can_program_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4643,12 +4635,12 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
4643
4635
|
can_hvac_cool: z.ZodOptional<z.ZodBoolean>;
|
|
4644
4636
|
can_hvac_heat_cool: z.ZodOptional<z.ZodBoolean>;
|
|
4645
4637
|
can_turn_off_hvac: z.ZodOptional<z.ZodBoolean>;
|
|
4646
|
-
}
|
|
4638
|
+
} & {
|
|
4647
4639
|
can_simulate_removal: z.ZodOptional<z.ZodBoolean>;
|
|
4648
4640
|
can_simulate_connection: z.ZodOptional<z.ZodBoolean>;
|
|
4649
4641
|
can_simulate_disconnection: z.ZodOptional<z.ZodBoolean>;
|
|
4650
4642
|
can_unlock_with_code: z.ZodOptional<z.ZodBoolean>;
|
|
4651
|
-
}
|
|
4643
|
+
}, "strip", z.ZodTypeAny, {
|
|
4652
4644
|
location: {
|
|
4653
4645
|
location_name?: string | undefined;
|
|
4654
4646
|
timezone?: string | undefined;
|