@seamapi/types 1.240.0 → 1.241.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 +1347 -768
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3569 -1426
- package/dist/devicedb.d.cts +30 -30
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +4 -4
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +1 -1
- package/lib/seam/connect/models/acs/acs-user.d.ts +231 -28
- package/lib/seam/connect/models/acs/acs-user.js +61 -13
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +78 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.d.ts +80 -0
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.js +25 -0
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.js.map +1 -0
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +185 -83
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +185 -83
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +15 -6
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +263 -119
- package/lib/seam/connect/models/devices/phone.d.ts +187 -85
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +185 -83
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +83 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js +18 -0
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -0
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.d.ts +18 -34
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js +8 -10
- package/lib/seam/connect/models/thermostats/climate-setting-schedule.js.map +1 -1
- package/lib/seam/connect/models/thermostats/index.d.ts +1 -1
- package/lib/seam/connect/models/thermostats/index.js +1 -1
- package/lib/seam/connect/models/thermostats/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +1000 -569
- package/lib/seam/connect/openapi.js +1188 -681
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1738 -460
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/lib/seam/devicedb/models/device-model.d.ts +8 -8
- package/lib/seam/devicedb/models/manufacturer.d.ts +2 -2
- package/lib/seam/devicedb/route-specs.d.ts +20 -20
- package/package.json +2 -2
- package/src/lib/seam/connect/internal/schemas.ts +2 -2
- package/src/lib/seam/connect/model-types.ts +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +86 -19
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/activate-climate-preset.ts +36 -0
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +16 -6
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +24 -0
- package/src/lib/seam/connect/models/thermostats/climate-setting-schedule.ts +16 -19
- package/src/lib/seam/connect/models/thermostats/index.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +1216 -670
- package/src/lib/seam/connect/route-types.ts +2030 -505
- package/src/lib/seam/connect/schemas.ts +1 -1
- package/lib/seam/connect/models/thermostats/climate-setting.d.ts +0 -24
- package/lib/seam/connect/models/thermostats/climate-setting.js +0 -11
- package/lib/seam/connect/models/thermostats/climate-setting.js.map +0 -1
- package/src/lib/seam/connect/models/thermostats/climate-setting.ts +0 -14
|
@@ -1,6 +1,83 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const acs_user_external_type: z.ZodEnum<["pti_user", "brivo_user", "hid_credential_manager_user", "salto_site_user", "latch_user"]>;
|
|
3
3
|
export type AcsUserExternalType = z.infer<typeof acs_user_external_type>;
|
|
4
|
+
export declare const acs_users_error_map: z.ZodObject<{
|
|
5
|
+
user_deleted_externally: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
6
|
+
created_at: z.ZodString;
|
|
7
|
+
message: z.ZodString;
|
|
8
|
+
}, {
|
|
9
|
+
error_code: z.ZodLiteral<"user_deleted_externally">;
|
|
10
|
+
}>, "strip", z.ZodTypeAny, {
|
|
11
|
+
message: string;
|
|
12
|
+
error_code: "user_deleted_externally";
|
|
13
|
+
created_at: string;
|
|
14
|
+
}, {
|
|
15
|
+
message: string;
|
|
16
|
+
error_code: "user_deleted_externally";
|
|
17
|
+
created_at: string;
|
|
18
|
+
}>>>;
|
|
19
|
+
salto_ks_subscription_limit_exceeded: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
20
|
+
created_at: z.ZodString;
|
|
21
|
+
message: z.ZodString;
|
|
22
|
+
}, {
|
|
23
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
24
|
+
}>, "strip", z.ZodTypeAny, {
|
|
25
|
+
message: string;
|
|
26
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
27
|
+
created_at: string;
|
|
28
|
+
}, {
|
|
29
|
+
message: string;
|
|
30
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
31
|
+
created_at: string;
|
|
32
|
+
}>>>;
|
|
33
|
+
salto_site_user_limit_reached: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
34
|
+
created_at: z.ZodString;
|
|
35
|
+
message: z.ZodString;
|
|
36
|
+
}, {
|
|
37
|
+
error_code: z.ZodLiteral<"salto_site_user_limit_reached">;
|
|
38
|
+
}>, "strip", z.ZodTypeAny, {
|
|
39
|
+
message: string;
|
|
40
|
+
error_code: "salto_site_user_limit_reached";
|
|
41
|
+
created_at: string;
|
|
42
|
+
}, {
|
|
43
|
+
message: string;
|
|
44
|
+
error_code: "salto_site_user_limit_reached";
|
|
45
|
+
created_at: string;
|
|
46
|
+
}>>>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
salto_site_user_limit_reached?: {
|
|
49
|
+
message: string;
|
|
50
|
+
error_code: "salto_site_user_limit_reached";
|
|
51
|
+
created_at: string;
|
|
52
|
+
} | null | undefined;
|
|
53
|
+
user_deleted_externally?: {
|
|
54
|
+
message: string;
|
|
55
|
+
error_code: "user_deleted_externally";
|
|
56
|
+
created_at: string;
|
|
57
|
+
} | null | undefined;
|
|
58
|
+
salto_ks_subscription_limit_exceeded?: {
|
|
59
|
+
message: string;
|
|
60
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
61
|
+
created_at: string;
|
|
62
|
+
} | null | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
salto_site_user_limit_reached?: {
|
|
65
|
+
message: string;
|
|
66
|
+
error_code: "salto_site_user_limit_reached";
|
|
67
|
+
created_at: string;
|
|
68
|
+
} | null | undefined;
|
|
69
|
+
user_deleted_externally?: {
|
|
70
|
+
message: string;
|
|
71
|
+
error_code: "user_deleted_externally";
|
|
72
|
+
created_at: string;
|
|
73
|
+
} | null | undefined;
|
|
74
|
+
salto_ks_subscription_limit_exceeded?: {
|
|
75
|
+
message: string;
|
|
76
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
77
|
+
created_at: string;
|
|
78
|
+
} | null | undefined;
|
|
79
|
+
}>;
|
|
80
|
+
export type AcsUsersErrorMap = z.infer<typeof acs_users_error_map>;
|
|
4
81
|
export declare const acs_users_warning_map: z.ZodObject<{
|
|
5
82
|
being_deleted: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
6
83
|
created_at: z.ZodString;
|
|
@@ -16,18 +93,18 @@ export declare const acs_users_warning_map: z.ZodObject<{
|
|
|
16
93
|
warning_code: "being_deleted";
|
|
17
94
|
created_at: string;
|
|
18
95
|
}>>>;
|
|
19
|
-
|
|
96
|
+
failed_to_update_on_acs_system: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
20
97
|
created_at: z.ZodString;
|
|
21
98
|
message: z.ZodString;
|
|
22
99
|
}, {
|
|
23
|
-
warning_code: z.ZodLiteral<"
|
|
100
|
+
warning_code: z.ZodLiteral<"failed_to_update_on_acs_system">;
|
|
24
101
|
}>, "strip", z.ZodTypeAny, {
|
|
25
102
|
message: string;
|
|
26
|
-
warning_code: "
|
|
103
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
27
104
|
created_at: string;
|
|
28
105
|
}, {
|
|
29
106
|
message: string;
|
|
30
|
-
warning_code: "
|
|
107
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
31
108
|
created_at: string;
|
|
32
109
|
}>>>;
|
|
33
110
|
salto_ks_user_not_subscribed: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -69,9 +146,9 @@ export declare const acs_users_warning_map: z.ZodObject<{
|
|
|
69
146
|
warning_code: "salto_ks_user_not_subscribed";
|
|
70
147
|
created_at: string;
|
|
71
148
|
} | null | undefined;
|
|
72
|
-
|
|
149
|
+
failed_to_update_on_acs_system?: {
|
|
73
150
|
message: string;
|
|
74
|
-
warning_code: "
|
|
151
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
75
152
|
created_at: string;
|
|
76
153
|
} | null | undefined;
|
|
77
154
|
salto_site_user_suspended?: {
|
|
@@ -90,9 +167,9 @@ export declare const acs_users_warning_map: z.ZodObject<{
|
|
|
90
167
|
warning_code: "salto_ks_user_not_subscribed";
|
|
91
168
|
created_at: string;
|
|
92
169
|
} | null | undefined;
|
|
93
|
-
|
|
170
|
+
failed_to_update_on_acs_system?: {
|
|
94
171
|
message: string;
|
|
95
|
-
warning_code: "
|
|
172
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
96
173
|
created_at: string;
|
|
97
174
|
} | null | undefined;
|
|
98
175
|
salto_site_user_suspended?: {
|
|
@@ -101,7 +178,7 @@ export declare const acs_users_warning_map: z.ZodObject<{
|
|
|
101
178
|
created_at: string;
|
|
102
179
|
} | null | undefined;
|
|
103
180
|
}>;
|
|
104
|
-
export declare const
|
|
181
|
+
export declare const acs_users_warnings: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
105
182
|
created_at: z.ZodString;
|
|
106
183
|
message: z.ZodString;
|
|
107
184
|
}, {
|
|
@@ -118,14 +195,14 @@ export declare const acs_users_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
|
118
195
|
created_at: z.ZodString;
|
|
119
196
|
message: z.ZodString;
|
|
120
197
|
}, {
|
|
121
|
-
warning_code: z.ZodLiteral<"
|
|
198
|
+
warning_code: z.ZodLiteral<"failed_to_update_on_acs_system">;
|
|
122
199
|
}>, "strip", z.ZodTypeAny, {
|
|
123
200
|
message: string;
|
|
124
|
-
warning_code: "
|
|
201
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
125
202
|
created_at: string;
|
|
126
203
|
}, {
|
|
127
204
|
message: string;
|
|
128
|
-
warning_code: "
|
|
205
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
129
206
|
created_at: string;
|
|
130
207
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
131
208
|
created_at: z.ZodString;
|
|
@@ -198,14 +275,14 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
198
275
|
created_at: z.ZodString;
|
|
199
276
|
message: z.ZodString;
|
|
200
277
|
}, {
|
|
201
|
-
warning_code: z.ZodLiteral<"
|
|
278
|
+
warning_code: z.ZodLiteral<"failed_to_update_on_acs_system">;
|
|
202
279
|
}>, "strip", z.ZodTypeAny, {
|
|
203
280
|
message: string;
|
|
204
|
-
warning_code: "
|
|
281
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
205
282
|
created_at: string;
|
|
206
283
|
}, {
|
|
207
284
|
message: string;
|
|
208
|
-
warning_code: "
|
|
285
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
209
286
|
created_at: string;
|
|
210
287
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
211
288
|
created_at: z.ZodString;
|
|
@@ -234,7 +311,46 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
234
311
|
warning_code: "salto_site_user_suspended";
|
|
235
312
|
created_at: string;
|
|
236
313
|
}>]>, "many">;
|
|
237
|
-
errors: z.
|
|
314
|
+
errors: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
315
|
+
created_at: z.ZodString;
|
|
316
|
+
message: z.ZodString;
|
|
317
|
+
}, {
|
|
318
|
+
error_code: z.ZodLiteral<"user_deleted_externally">;
|
|
319
|
+
}>, "strip", z.ZodTypeAny, {
|
|
320
|
+
message: string;
|
|
321
|
+
error_code: "user_deleted_externally";
|
|
322
|
+
created_at: string;
|
|
323
|
+
}, {
|
|
324
|
+
message: string;
|
|
325
|
+
error_code: "user_deleted_externally";
|
|
326
|
+
created_at: string;
|
|
327
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
328
|
+
created_at: z.ZodString;
|
|
329
|
+
message: z.ZodString;
|
|
330
|
+
}, {
|
|
331
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
332
|
+
}>, "strip", z.ZodTypeAny, {
|
|
333
|
+
message: string;
|
|
334
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
335
|
+
created_at: string;
|
|
336
|
+
}, {
|
|
337
|
+
message: string;
|
|
338
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
339
|
+
created_at: string;
|
|
340
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
341
|
+
created_at: z.ZodString;
|
|
342
|
+
message: z.ZodString;
|
|
343
|
+
}, {
|
|
344
|
+
error_code: z.ZodLiteral<"salto_site_user_limit_reached">;
|
|
345
|
+
}>, "strip", z.ZodTypeAny, {
|
|
346
|
+
message: string;
|
|
347
|
+
error_code: "salto_site_user_limit_reached";
|
|
348
|
+
created_at: string;
|
|
349
|
+
}, {
|
|
350
|
+
message: string;
|
|
351
|
+
error_code: "salto_site_user_limit_reached";
|
|
352
|
+
created_at: string;
|
|
353
|
+
}>]>, "many">;
|
|
238
354
|
}, {
|
|
239
355
|
full_name: z.ZodOptional<z.ZodString>;
|
|
240
356
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -244,6 +360,19 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
244
360
|
is_managed: z.ZodLiteral<true>;
|
|
245
361
|
}>, "strip", z.ZodTypeAny, {
|
|
246
362
|
created_at: string;
|
|
363
|
+
errors: ({
|
|
364
|
+
message: string;
|
|
365
|
+
error_code: "user_deleted_externally";
|
|
366
|
+
created_at: string;
|
|
367
|
+
} | {
|
|
368
|
+
message: string;
|
|
369
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
370
|
+
created_at: string;
|
|
371
|
+
} | {
|
|
372
|
+
message: string;
|
|
373
|
+
error_code: "salto_site_user_limit_reached";
|
|
374
|
+
created_at: string;
|
|
375
|
+
})[];
|
|
247
376
|
warnings: ({
|
|
248
377
|
message: string;
|
|
249
378
|
warning_code: "being_deleted";
|
|
@@ -254,7 +383,7 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
254
383
|
created_at: string;
|
|
255
384
|
} | {
|
|
256
385
|
message: string;
|
|
257
|
-
warning_code: "
|
|
386
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
258
387
|
created_at: string;
|
|
259
388
|
} | {
|
|
260
389
|
message: string;
|
|
@@ -268,7 +397,6 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
268
397
|
acs_user_id: string;
|
|
269
398
|
is_suspended: boolean;
|
|
270
399
|
email?: string | undefined;
|
|
271
|
-
errors?: any;
|
|
272
400
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
273
401
|
external_type_display_name?: string | undefined;
|
|
274
402
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
@@ -287,6 +415,19 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
287
415
|
user_identity_phone_number?: string | null | undefined;
|
|
288
416
|
}, {
|
|
289
417
|
created_at: string;
|
|
418
|
+
errors: ({
|
|
419
|
+
message: string;
|
|
420
|
+
error_code: "user_deleted_externally";
|
|
421
|
+
created_at: string;
|
|
422
|
+
} | {
|
|
423
|
+
message: string;
|
|
424
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
425
|
+
created_at: string;
|
|
426
|
+
} | {
|
|
427
|
+
message: string;
|
|
428
|
+
error_code: "salto_site_user_limit_reached";
|
|
429
|
+
created_at: string;
|
|
430
|
+
})[];
|
|
290
431
|
warnings: ({
|
|
291
432
|
message: string;
|
|
292
433
|
warning_code: "being_deleted";
|
|
@@ -297,7 +438,7 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
297
438
|
created_at: string;
|
|
298
439
|
} | {
|
|
299
440
|
message: string;
|
|
300
|
-
warning_code: "
|
|
441
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
301
442
|
created_at: string;
|
|
302
443
|
} | {
|
|
303
444
|
message: string;
|
|
@@ -311,7 +452,6 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
311
452
|
acs_user_id: string;
|
|
312
453
|
is_suspended: boolean;
|
|
313
454
|
email?: string | undefined;
|
|
314
|
-
errors?: any;
|
|
315
455
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
316
456
|
external_type_display_name?: string | undefined;
|
|
317
457
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
@@ -372,14 +512,14 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
372
512
|
created_at: z.ZodString;
|
|
373
513
|
message: z.ZodString;
|
|
374
514
|
}, {
|
|
375
|
-
warning_code: z.ZodLiteral<"
|
|
515
|
+
warning_code: z.ZodLiteral<"failed_to_update_on_acs_system">;
|
|
376
516
|
}>, "strip", z.ZodTypeAny, {
|
|
377
517
|
message: string;
|
|
378
|
-
warning_code: "
|
|
518
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
379
519
|
created_at: string;
|
|
380
520
|
}, {
|
|
381
521
|
message: string;
|
|
382
|
-
warning_code: "
|
|
522
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
383
523
|
created_at: string;
|
|
384
524
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
385
525
|
created_at: z.ZodString;
|
|
@@ -408,7 +548,46 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
408
548
|
warning_code: "salto_site_user_suspended";
|
|
409
549
|
created_at: string;
|
|
410
550
|
}>]>, "many">;
|
|
411
|
-
errors: z.
|
|
551
|
+
errors: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
552
|
+
created_at: z.ZodString;
|
|
553
|
+
message: z.ZodString;
|
|
554
|
+
}, {
|
|
555
|
+
error_code: z.ZodLiteral<"user_deleted_externally">;
|
|
556
|
+
}>, "strip", z.ZodTypeAny, {
|
|
557
|
+
message: string;
|
|
558
|
+
error_code: "user_deleted_externally";
|
|
559
|
+
created_at: string;
|
|
560
|
+
}, {
|
|
561
|
+
message: string;
|
|
562
|
+
error_code: "user_deleted_externally";
|
|
563
|
+
created_at: string;
|
|
564
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
565
|
+
created_at: z.ZodString;
|
|
566
|
+
message: z.ZodString;
|
|
567
|
+
}, {
|
|
568
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
569
|
+
}>, "strip", z.ZodTypeAny, {
|
|
570
|
+
message: string;
|
|
571
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
572
|
+
created_at: string;
|
|
573
|
+
}, {
|
|
574
|
+
message: string;
|
|
575
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
576
|
+
created_at: string;
|
|
577
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
578
|
+
created_at: z.ZodString;
|
|
579
|
+
message: z.ZodString;
|
|
580
|
+
}, {
|
|
581
|
+
error_code: z.ZodLiteral<"salto_site_user_limit_reached">;
|
|
582
|
+
}>, "strip", z.ZodTypeAny, {
|
|
583
|
+
message: string;
|
|
584
|
+
error_code: "salto_site_user_limit_reached";
|
|
585
|
+
created_at: string;
|
|
586
|
+
}, {
|
|
587
|
+
message: string;
|
|
588
|
+
error_code: "salto_site_user_limit_reached";
|
|
589
|
+
created_at: string;
|
|
590
|
+
}>]>, "many">;
|
|
412
591
|
}, {
|
|
413
592
|
full_name: z.ZodOptional<z.ZodString>;
|
|
414
593
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -418,6 +597,19 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
418
597
|
is_managed: z.ZodLiteral<false>;
|
|
419
598
|
}>, "strip", z.ZodTypeAny, {
|
|
420
599
|
created_at: string;
|
|
600
|
+
errors: ({
|
|
601
|
+
message: string;
|
|
602
|
+
error_code: "user_deleted_externally";
|
|
603
|
+
created_at: string;
|
|
604
|
+
} | {
|
|
605
|
+
message: string;
|
|
606
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
607
|
+
created_at: string;
|
|
608
|
+
} | {
|
|
609
|
+
message: string;
|
|
610
|
+
error_code: "salto_site_user_limit_reached";
|
|
611
|
+
created_at: string;
|
|
612
|
+
})[];
|
|
421
613
|
warnings: ({
|
|
422
614
|
message: string;
|
|
423
615
|
warning_code: "being_deleted";
|
|
@@ -428,7 +620,7 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
428
620
|
created_at: string;
|
|
429
621
|
} | {
|
|
430
622
|
message: string;
|
|
431
|
-
warning_code: "
|
|
623
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
432
624
|
created_at: string;
|
|
433
625
|
} | {
|
|
434
626
|
message: string;
|
|
@@ -442,7 +634,6 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
442
634
|
acs_user_id: string;
|
|
443
635
|
is_suspended: boolean;
|
|
444
636
|
email?: string | undefined;
|
|
445
|
-
errors?: any;
|
|
446
637
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
447
638
|
external_type_display_name?: string | undefined;
|
|
448
639
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
@@ -461,6 +652,19 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
461
652
|
user_identity_phone_number?: string | null | undefined;
|
|
462
653
|
}, {
|
|
463
654
|
created_at: string;
|
|
655
|
+
errors: ({
|
|
656
|
+
message: string;
|
|
657
|
+
error_code: "user_deleted_externally";
|
|
658
|
+
created_at: string;
|
|
659
|
+
} | {
|
|
660
|
+
message: string;
|
|
661
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
662
|
+
created_at: string;
|
|
663
|
+
} | {
|
|
664
|
+
message: string;
|
|
665
|
+
error_code: "salto_site_user_limit_reached";
|
|
666
|
+
created_at: string;
|
|
667
|
+
})[];
|
|
464
668
|
warnings: ({
|
|
465
669
|
message: string;
|
|
466
670
|
warning_code: "being_deleted";
|
|
@@ -471,7 +675,7 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
471
675
|
created_at: string;
|
|
472
676
|
} | {
|
|
473
677
|
message: string;
|
|
474
|
-
warning_code: "
|
|
678
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
475
679
|
created_at: string;
|
|
476
680
|
} | {
|
|
477
681
|
message: string;
|
|
@@ -485,7 +689,6 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
485
689
|
acs_user_id: string;
|
|
486
690
|
is_suspended: boolean;
|
|
487
691
|
email?: string | undefined;
|
|
488
|
-
errors?: any;
|
|
489
692
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
490
693
|
external_type_display_name?: string | undefined;
|
|
491
694
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
@@ -8,26 +8,72 @@ export const acs_user_external_type = z.enum([
|
|
|
8
8
|
'salto_site_user',
|
|
9
9
|
'latch_user',
|
|
10
10
|
]);
|
|
11
|
+
const common_acs_user_error = z.object({
|
|
12
|
+
created_at: z
|
|
13
|
+
.string()
|
|
14
|
+
.datetime()
|
|
15
|
+
.describe('Date and time at which Seam created the error.'),
|
|
16
|
+
message: z
|
|
17
|
+
.string()
|
|
18
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
19
|
+
});
|
|
20
|
+
const acs_users_user_deleted_externally = common_acs_user_error
|
|
21
|
+
.extend({
|
|
22
|
+
error_code: z.literal('user_deleted_externally'),
|
|
23
|
+
})
|
|
24
|
+
.describe(`Indicates that the user was deleted from the ACS system outside of Seam.`);
|
|
25
|
+
const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error
|
|
26
|
+
.extend({
|
|
27
|
+
error_code: z.literal('salto_ks_subscription_limit_exceeded'),
|
|
28
|
+
})
|
|
29
|
+
.describe(`Indicates that the user could not be subscribed on Salto KS because the subscription limit has been exceeded.`);
|
|
30
|
+
const acs_users_salto_site_user_limit_reached = common_acs_user_error.extend({
|
|
31
|
+
error_code: z.literal('salto_site_user_limit_reached'),
|
|
32
|
+
});
|
|
33
|
+
const acs_user_errors = z
|
|
34
|
+
.union([
|
|
35
|
+
acs_users_user_deleted_externally,
|
|
36
|
+
acs_users_salto_ks_subscription_limit_exceeded,
|
|
37
|
+
acs_users_salto_site_user_limit_reached,
|
|
38
|
+
])
|
|
39
|
+
.describe('Error associated with the `acs_user`.');
|
|
40
|
+
export const acs_users_error_map = z.object({
|
|
41
|
+
user_deleted_externally: acs_users_user_deleted_externally
|
|
42
|
+
.optional()
|
|
43
|
+
.nullable(),
|
|
44
|
+
salto_ks_subscription_limit_exceeded: acs_users_salto_ks_subscription_limit_exceeded.optional().nullable(),
|
|
45
|
+
salto_site_user_limit_reached: acs_users_salto_site_user_limit_reached
|
|
46
|
+
.optional()
|
|
47
|
+
.nullable(),
|
|
48
|
+
});
|
|
11
49
|
const common_acs_users_warning = z.object({
|
|
12
50
|
created_at: z.string().datetime(),
|
|
13
51
|
message: z.string(),
|
|
14
52
|
});
|
|
15
|
-
const acs_users_being_deleted = common_acs_users_warning
|
|
53
|
+
const acs_users_being_deleted = common_acs_users_warning
|
|
54
|
+
.extend({
|
|
16
55
|
warning_code: z.literal('being_deleted'),
|
|
17
|
-
})
|
|
18
|
-
|
|
56
|
+
})
|
|
57
|
+
.describe(`Indicates that the user is being deleted from the ACS system. This is a temporary state, and the user will be deleted shortly.`);
|
|
58
|
+
const acs_users_salto_ks_user_not_subscribed = common_acs_users_warning
|
|
59
|
+
.extend({
|
|
19
60
|
warning_code: z.literal('salto_ks_user_not_subscribed'),
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
61
|
+
})
|
|
62
|
+
.describe(`Indicates that the user is not subscribed on the Salto KS, so they cannot unlock doors or perform any actions. This occur when the their access schedule hasn’t started yet, or if their access schedule has ended, or if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.`);
|
|
63
|
+
const acs_users_failed_to_update_on_acs_system = common_acs_users_warning
|
|
64
|
+
.extend({
|
|
65
|
+
warning_code: z.literal('failed_to_update_on_acs_system'),
|
|
66
|
+
})
|
|
67
|
+
.describe(`Indicates that the user was not updated on the ACS system. This is likely due to an internal unexpected error. Please contact Seam's support if you encounter this.`);
|
|
24
68
|
// TODO: Some acs_users already have this warning, so we need to keep it here until we migrate
|
|
25
69
|
const acs_users_salto_site_user_suspended = common_acs_users_warning.extend({
|
|
26
70
|
warning_code: z.literal('salto_site_user_suspended'),
|
|
27
71
|
});
|
|
28
72
|
export const acs_users_warning_map = z.object({
|
|
29
73
|
being_deleted: acs_users_being_deleted.optional().nullable(),
|
|
30
|
-
|
|
74
|
+
failed_to_update_on_acs_system: acs_users_failed_to_update_on_acs_system
|
|
75
|
+
.optional()
|
|
76
|
+
.nullable(),
|
|
31
77
|
salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed
|
|
32
78
|
.optional()
|
|
33
79
|
.nullable(),
|
|
@@ -35,12 +81,14 @@ export const acs_users_warning_map = z.object({
|
|
|
35
81
|
.optional()
|
|
36
82
|
.nullable(),
|
|
37
83
|
});
|
|
38
|
-
export const
|
|
84
|
+
export const acs_users_warnings = z
|
|
85
|
+
.union([
|
|
39
86
|
acs_users_being_deleted,
|
|
40
|
-
|
|
87
|
+
acs_users_failed_to_update_on_acs_system,
|
|
41
88
|
acs_users_salto_ks_user_not_subscribed,
|
|
42
89
|
acs_users_salto_site_user_suspended,
|
|
43
|
-
])
|
|
90
|
+
])
|
|
91
|
+
.describe('Warning associated with the `acs_user`.');
|
|
44
92
|
const user_fields = z.object({
|
|
45
93
|
full_name: z.string().optional(),
|
|
46
94
|
email: z.string().email().optional().describe(`
|
|
@@ -72,8 +120,8 @@ const common_acs_user = z
|
|
|
72
120
|
.datetime()
|
|
73
121
|
.optional(),
|
|
74
122
|
is_latest_desired_state_synced_with_provider: z.boolean().optional(),
|
|
75
|
-
warnings: z.array(
|
|
76
|
-
errors: z.
|
|
123
|
+
warnings: z.array(acs_users_warnings),
|
|
124
|
+
errors: z.array(acs_user_errors),
|
|
77
125
|
})
|
|
78
126
|
.merge(user_fields);
|
|
79
127
|
export const acs_user = common_acs_user.merge(z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-user.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU;IACV,YAAY;IACZ,6BAA6B;IAC7B,iBAAiB;IACjB,YAAY;CACb,CAAC,CAAA;AAIF,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,uBAAuB,GAAG,wBAAwB,
|
|
1
|
+
{"version":3,"file":"acs-user.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,UAAU;IACV,YAAY;IACZ,6BAA6B;IAC7B,iBAAiB;IACjB,YAAY;CACb,CAAC,CAAA;AAIF,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAA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AQ,EAAE;IACpE,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;CACjC,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA;AAErB,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAC3C,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5B,CAAC,CACH,CAAA;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC,KAAK,CACrD,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;CAC7B,CAAC,CACH,CAAA"}
|
|
@@ -630,6 +630,84 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<z.objectUtil.extend
|
|
|
630
630
|
status: z.ZodLiteral<"pending">;
|
|
631
631
|
result: z.ZodNull;
|
|
632
632
|
error: z.ZodNull;
|
|
633
|
+
}>, {
|
|
634
|
+
action_type: z.ZodLiteral<"ACTIVATE_CLIMATE_PRESET">;
|
|
635
|
+
}>, "strip", z.ZodTypeAny, {
|
|
636
|
+
error: null;
|
|
637
|
+
status: "pending";
|
|
638
|
+
action_attempt_id: string;
|
|
639
|
+
result: null;
|
|
640
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
641
|
+
}, {
|
|
642
|
+
error: null;
|
|
643
|
+
status: "pending";
|
|
644
|
+
action_attempt_id: string;
|
|
645
|
+
result: null;
|
|
646
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
647
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
648
|
+
action_attempt_id: z.ZodString;
|
|
649
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
650
|
+
}, {
|
|
651
|
+
status: z.ZodLiteral<"success">;
|
|
652
|
+
error: z.ZodNull;
|
|
653
|
+
}>, {
|
|
654
|
+
action_type: z.ZodLiteral<"ACTIVATE_CLIMATE_PRESET">;
|
|
655
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
656
|
+
}>, "strip", z.ZodTypeAny, {
|
|
657
|
+
error: null;
|
|
658
|
+
status: "success";
|
|
659
|
+
action_attempt_id: string;
|
|
660
|
+
result: {};
|
|
661
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
662
|
+
}, {
|
|
663
|
+
error: null;
|
|
664
|
+
status: "success";
|
|
665
|
+
action_attempt_id: string;
|
|
666
|
+
result: {};
|
|
667
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
668
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
669
|
+
action_attempt_id: z.ZodString;
|
|
670
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
671
|
+
}, {
|
|
672
|
+
status: z.ZodLiteral<"error">;
|
|
673
|
+
result: z.ZodNull;
|
|
674
|
+
}>, {
|
|
675
|
+
action_type: z.ZodLiteral<"ACTIVATE_CLIMATE_PRESET">;
|
|
676
|
+
error: z.ZodObject<{
|
|
677
|
+
type: z.ZodString;
|
|
678
|
+
message: z.ZodString;
|
|
679
|
+
}, "strip", z.ZodTypeAny, {
|
|
680
|
+
type: string;
|
|
681
|
+
message: string;
|
|
682
|
+
}, {
|
|
683
|
+
type: string;
|
|
684
|
+
message: string;
|
|
685
|
+
}>;
|
|
686
|
+
}>, "strip", z.ZodTypeAny, {
|
|
687
|
+
error: {
|
|
688
|
+
type: string;
|
|
689
|
+
message: string;
|
|
690
|
+
};
|
|
691
|
+
status: "error";
|
|
692
|
+
action_attempt_id: string;
|
|
693
|
+
result: null;
|
|
694
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
695
|
+
}, {
|
|
696
|
+
error: {
|
|
697
|
+
type: string;
|
|
698
|
+
message: string;
|
|
699
|
+
};
|
|
700
|
+
status: "error";
|
|
701
|
+
action_attempt_id: string;
|
|
702
|
+
result: null;
|
|
703
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
704
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
705
|
+
action_attempt_id: z.ZodString;
|
|
706
|
+
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
707
|
+
}, {
|
|
708
|
+
status: z.ZodLiteral<"pending">;
|
|
709
|
+
result: z.ZodNull;
|
|
710
|
+
error: z.ZodNull;
|
|
633
711
|
}>, {
|
|
634
712
|
action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
|
|
635
713
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js';
|
|
2
3
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
3
4
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
4
5
|
import { reset_sandbox_workspace_action_attempt } from './reset-sandbox-workspace.js';
|
|
@@ -17,6 +18,7 @@ export const action_attempt = z.union([
|
|
|
17
18
|
...set_heat_cool_action_attempt.options,
|
|
18
19
|
...set_fan_mode_action_attempt.options,
|
|
19
20
|
...set_thermostat_off_action_attempt.options,
|
|
21
|
+
...activate_climate_preset_action_attempt.options,
|
|
20
22
|
...deprecated_action_attempts,
|
|
21
23
|
]);
|
|
22
24
|
//# sourceMappingURL=action-attempt.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,uBAAuB,CAAC,OAAO;IAClC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,0BAA0B;CAC9B,CAAC,CAAA"}
|