@seamapi/types 1.239.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 +1412 -774
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3622 -1409
- 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 +289 -7
- package/lib/seam/connect/models/acs/acs-user.js +61 -8
- 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 +1218 -657
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1759 -453
- 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 +88 -13
- 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 +1252 -652
- package/src/lib/seam/connect/route-types.ts +2058 -498
- 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,6 +93,20 @@ export declare const acs_users_warning_map: z.ZodObject<{
|
|
|
16
93
|
warning_code: "being_deleted";
|
|
17
94
|
created_at: string;
|
|
18
95
|
}>>>;
|
|
96
|
+
failed_to_update_on_acs_system: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
97
|
+
created_at: z.ZodString;
|
|
98
|
+
message: z.ZodString;
|
|
99
|
+
}, {
|
|
100
|
+
warning_code: z.ZodLiteral<"failed_to_update_on_acs_system">;
|
|
101
|
+
}>, "strip", z.ZodTypeAny, {
|
|
102
|
+
message: string;
|
|
103
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
104
|
+
created_at: string;
|
|
105
|
+
}, {
|
|
106
|
+
message: string;
|
|
107
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
108
|
+
created_at: string;
|
|
109
|
+
}>>>;
|
|
19
110
|
salto_ks_user_not_subscribed: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
20
111
|
created_at: z.ZodString;
|
|
21
112
|
message: z.ZodString;
|
|
@@ -55,6 +146,11 @@ export declare const acs_users_warning_map: z.ZodObject<{
|
|
|
55
146
|
warning_code: "salto_ks_user_not_subscribed";
|
|
56
147
|
created_at: string;
|
|
57
148
|
} | null | undefined;
|
|
149
|
+
failed_to_update_on_acs_system?: {
|
|
150
|
+
message: string;
|
|
151
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
152
|
+
created_at: string;
|
|
153
|
+
} | null | undefined;
|
|
58
154
|
salto_site_user_suspended?: {
|
|
59
155
|
message: string;
|
|
60
156
|
warning_code: "salto_site_user_suspended";
|
|
@@ -71,13 +167,18 @@ export declare const acs_users_warning_map: z.ZodObject<{
|
|
|
71
167
|
warning_code: "salto_ks_user_not_subscribed";
|
|
72
168
|
created_at: string;
|
|
73
169
|
} | null | undefined;
|
|
170
|
+
failed_to_update_on_acs_system?: {
|
|
171
|
+
message: string;
|
|
172
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
173
|
+
created_at: string;
|
|
174
|
+
} | null | undefined;
|
|
74
175
|
salto_site_user_suspended?: {
|
|
75
176
|
message: string;
|
|
76
177
|
warning_code: "salto_site_user_suspended";
|
|
77
178
|
created_at: string;
|
|
78
179
|
} | null | undefined;
|
|
79
180
|
}>;
|
|
80
|
-
export declare const
|
|
181
|
+
export declare const acs_users_warnings: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
81
182
|
created_at: z.ZodString;
|
|
82
183
|
message: z.ZodString;
|
|
83
184
|
}, {
|
|
@@ -93,6 +194,19 @@ export declare const acs_users_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.ext
|
|
|
93
194
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
94
195
|
created_at: z.ZodString;
|
|
95
196
|
message: z.ZodString;
|
|
197
|
+
}, {
|
|
198
|
+
warning_code: z.ZodLiteral<"failed_to_update_on_acs_system">;
|
|
199
|
+
}>, "strip", z.ZodTypeAny, {
|
|
200
|
+
message: string;
|
|
201
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
202
|
+
created_at: string;
|
|
203
|
+
}, {
|
|
204
|
+
message: string;
|
|
205
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
206
|
+
created_at: string;
|
|
207
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
208
|
+
created_at: z.ZodString;
|
|
209
|
+
message: z.ZodString;
|
|
96
210
|
}, {
|
|
97
211
|
warning_code: z.ZodLiteral<"salto_ks_user_not_subscribed">;
|
|
98
212
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -160,6 +274,19 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
160
274
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
161
275
|
created_at: z.ZodString;
|
|
162
276
|
message: z.ZodString;
|
|
277
|
+
}, {
|
|
278
|
+
warning_code: z.ZodLiteral<"failed_to_update_on_acs_system">;
|
|
279
|
+
}>, "strip", z.ZodTypeAny, {
|
|
280
|
+
message: string;
|
|
281
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
282
|
+
created_at: string;
|
|
283
|
+
}, {
|
|
284
|
+
message: string;
|
|
285
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
286
|
+
created_at: string;
|
|
287
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
288
|
+
created_at: z.ZodString;
|
|
289
|
+
message: z.ZodString;
|
|
163
290
|
}, {
|
|
164
291
|
warning_code: z.ZodLiteral<"salto_ks_user_not_subscribed">;
|
|
165
292
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -184,7 +311,46 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
184
311
|
warning_code: "salto_site_user_suspended";
|
|
185
312
|
created_at: string;
|
|
186
313
|
}>]>, "many">;
|
|
187
|
-
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">;
|
|
188
354
|
}, {
|
|
189
355
|
full_name: z.ZodOptional<z.ZodString>;
|
|
190
356
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -194,6 +360,19 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
194
360
|
is_managed: z.ZodLiteral<true>;
|
|
195
361
|
}>, "strip", z.ZodTypeAny, {
|
|
196
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
|
+
})[];
|
|
197
376
|
warnings: ({
|
|
198
377
|
message: string;
|
|
199
378
|
warning_code: "being_deleted";
|
|
@@ -202,6 +381,10 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
202
381
|
message: string;
|
|
203
382
|
warning_code: "salto_ks_user_not_subscribed";
|
|
204
383
|
created_at: string;
|
|
384
|
+
} | {
|
|
385
|
+
message: string;
|
|
386
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
387
|
+
created_at: string;
|
|
205
388
|
} | {
|
|
206
389
|
message: string;
|
|
207
390
|
warning_code: "salto_site_user_suspended";
|
|
@@ -214,7 +397,6 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
214
397
|
acs_user_id: string;
|
|
215
398
|
is_suspended: boolean;
|
|
216
399
|
email?: string | undefined;
|
|
217
|
-
errors?: any;
|
|
218
400
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
219
401
|
external_type_display_name?: string | undefined;
|
|
220
402
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
@@ -233,6 +415,19 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
233
415
|
user_identity_phone_number?: string | null | undefined;
|
|
234
416
|
}, {
|
|
235
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
|
+
})[];
|
|
236
431
|
warnings: ({
|
|
237
432
|
message: string;
|
|
238
433
|
warning_code: "being_deleted";
|
|
@@ -241,6 +436,10 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
241
436
|
message: string;
|
|
242
437
|
warning_code: "salto_ks_user_not_subscribed";
|
|
243
438
|
created_at: string;
|
|
439
|
+
} | {
|
|
440
|
+
message: string;
|
|
441
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
442
|
+
created_at: string;
|
|
244
443
|
} | {
|
|
245
444
|
message: string;
|
|
246
445
|
warning_code: "salto_site_user_suspended";
|
|
@@ -253,7 +452,6 @@ export declare const acs_user: z.ZodObject<z.objectUtil.extendShape<z.objectUtil
|
|
|
253
452
|
acs_user_id: string;
|
|
254
453
|
is_suspended: boolean;
|
|
255
454
|
email?: string | undefined;
|
|
256
|
-
errors?: any;
|
|
257
455
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
258
456
|
external_type_display_name?: string | undefined;
|
|
259
457
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
@@ -313,6 +511,19 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
313
511
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
314
512
|
created_at: z.ZodString;
|
|
315
513
|
message: z.ZodString;
|
|
514
|
+
}, {
|
|
515
|
+
warning_code: z.ZodLiteral<"failed_to_update_on_acs_system">;
|
|
516
|
+
}>, "strip", z.ZodTypeAny, {
|
|
517
|
+
message: string;
|
|
518
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
519
|
+
created_at: string;
|
|
520
|
+
}, {
|
|
521
|
+
message: string;
|
|
522
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
523
|
+
created_at: string;
|
|
524
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
525
|
+
created_at: z.ZodString;
|
|
526
|
+
message: z.ZodString;
|
|
316
527
|
}, {
|
|
317
528
|
warning_code: z.ZodLiteral<"salto_ks_user_not_subscribed">;
|
|
318
529
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -337,7 +548,46 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
337
548
|
warning_code: "salto_site_user_suspended";
|
|
338
549
|
created_at: string;
|
|
339
550
|
}>]>, "many">;
|
|
340
|
-
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">;
|
|
341
591
|
}, {
|
|
342
592
|
full_name: z.ZodOptional<z.ZodString>;
|
|
343
593
|
email: z.ZodOptional<z.ZodString>;
|
|
@@ -347,6 +597,19 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
347
597
|
is_managed: z.ZodLiteral<false>;
|
|
348
598
|
}>, "strip", z.ZodTypeAny, {
|
|
349
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
|
+
})[];
|
|
350
613
|
warnings: ({
|
|
351
614
|
message: string;
|
|
352
615
|
warning_code: "being_deleted";
|
|
@@ -355,6 +618,10 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
355
618
|
message: string;
|
|
356
619
|
warning_code: "salto_ks_user_not_subscribed";
|
|
357
620
|
created_at: string;
|
|
621
|
+
} | {
|
|
622
|
+
message: string;
|
|
623
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
624
|
+
created_at: string;
|
|
358
625
|
} | {
|
|
359
626
|
message: string;
|
|
360
627
|
warning_code: "salto_site_user_suspended";
|
|
@@ -367,7 +634,6 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
367
634
|
acs_user_id: string;
|
|
368
635
|
is_suspended: boolean;
|
|
369
636
|
email?: string | undefined;
|
|
370
|
-
errors?: any;
|
|
371
637
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
372
638
|
external_type_display_name?: string | undefined;
|
|
373
639
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
@@ -386,6 +652,19 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
386
652
|
user_identity_phone_number?: string | null | undefined;
|
|
387
653
|
}, {
|
|
388
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
|
+
})[];
|
|
389
668
|
warnings: ({
|
|
390
669
|
message: string;
|
|
391
670
|
warning_code: "being_deleted";
|
|
@@ -394,6 +673,10 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
394
673
|
message: string;
|
|
395
674
|
warning_code: "salto_ks_user_not_subscribed";
|
|
396
675
|
created_at: string;
|
|
676
|
+
} | {
|
|
677
|
+
message: string;
|
|
678
|
+
warning_code: "failed_to_update_on_acs_system";
|
|
679
|
+
created_at: string;
|
|
397
680
|
} | {
|
|
398
681
|
message: string;
|
|
399
682
|
warning_code: "salto_site_user_suspended";
|
|
@@ -406,7 +689,6 @@ export declare const unmanaged_acs_user: z.ZodObject<z.objectUtil.extendShape<z.
|
|
|
406
689
|
acs_user_id: string;
|
|
407
690
|
is_suspended: boolean;
|
|
408
691
|
email?: string | undefined;
|
|
409
|
-
errors?: any;
|
|
410
692
|
external_type?: "pti_user" | "brivo_user" | "hid_credential_manager_user" | "salto_site_user" | "latch_user" | undefined;
|
|
411
693
|
external_type_display_name?: string | undefined;
|
|
412
694
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
@@ -8,22 +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
|
-
})
|
|
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.`);
|
|
21
68
|
// TODO: Some acs_users already have this warning, so we need to keep it here until we migrate
|
|
22
69
|
const acs_users_salto_site_user_suspended = common_acs_users_warning.extend({
|
|
23
70
|
warning_code: z.literal('salto_site_user_suspended'),
|
|
24
71
|
});
|
|
25
72
|
export const acs_users_warning_map = z.object({
|
|
26
73
|
being_deleted: acs_users_being_deleted.optional().nullable(),
|
|
74
|
+
failed_to_update_on_acs_system: acs_users_failed_to_update_on_acs_system
|
|
75
|
+
.optional()
|
|
76
|
+
.nullable(),
|
|
27
77
|
salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed
|
|
28
78
|
.optional()
|
|
29
79
|
.nullable(),
|
|
@@ -31,11 +81,14 @@ export const acs_users_warning_map = z.object({
|
|
|
31
81
|
.optional()
|
|
32
82
|
.nullable(),
|
|
33
83
|
});
|
|
34
|
-
export const
|
|
84
|
+
export const acs_users_warnings = z
|
|
85
|
+
.union([
|
|
35
86
|
acs_users_being_deleted,
|
|
87
|
+
acs_users_failed_to_update_on_acs_system,
|
|
36
88
|
acs_users_salto_ks_user_not_subscribed,
|
|
37
89
|
acs_users_salto_site_user_suspended,
|
|
38
|
-
])
|
|
90
|
+
])
|
|
91
|
+
.describe('Warning associated with the `acs_user`.');
|
|
39
92
|
const user_fields = z.object({
|
|
40
93
|
full_name: z.string().optional(),
|
|
41
94
|
email: z.string().email().optional().describe(`
|
|
@@ -67,8 +120,8 @@ const common_acs_user = z
|
|
|
67
120
|
.datetime()
|
|
68
121
|
.optional(),
|
|
69
122
|
is_latest_desired_state_synced_with_provider: z.boolean().optional(),
|
|
70
|
-
warnings: z.array(
|
|
71
|
-
errors: z.
|
|
123
|
+
warnings: z.array(acs_users_warnings),
|
|
124
|
+
errors: z.array(acs_user_errors),
|
|
72
125
|
})
|
|
73
126
|
.merge(user_fields);
|
|
74
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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,QAAQ,EAAE;IACpC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzD,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC7D,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC5D,4CAA4C,EAAE,CAAC;SAC5C,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,4CAA4C,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,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"}
|