@seamapi/http 1.52.0 → 1.53.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 +16 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +307 -293
- package/dist/index.cjs +16 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +388 -388
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +13 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +9 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +3 -2
- package/lib/seam/connect/routes/seam-http-endpoints.js +7 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +33 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +17 -0
- package/src/lib/version.ts +1 -1
|
@@ -5,57 +5,57 @@ export interface ResolveActionAttemptOptions {
|
|
|
5
5
|
pollingInterval?: number;
|
|
6
6
|
}
|
|
7
7
|
export declare const resolveActionAttempt: <T extends {
|
|
8
|
-
error: null;
|
|
9
8
|
status: "pending";
|
|
10
9
|
action_attempt_id: string;
|
|
10
|
+
error: null;
|
|
11
11
|
result: null;
|
|
12
12
|
action_type: "LOCK_DOOR";
|
|
13
13
|
} | {
|
|
14
|
-
error: null;
|
|
15
14
|
status: "success";
|
|
16
15
|
action_attempt_id: string;
|
|
16
|
+
error: null;
|
|
17
17
|
result: {};
|
|
18
18
|
action_type: "LOCK_DOOR";
|
|
19
19
|
} | {
|
|
20
|
+
status: "error";
|
|
21
|
+
action_attempt_id: string;
|
|
20
22
|
error: {
|
|
21
|
-
type: string;
|
|
22
23
|
message: string;
|
|
24
|
+
type: string;
|
|
23
25
|
};
|
|
24
|
-
status: "error";
|
|
25
|
-
action_attempt_id: string;
|
|
26
26
|
result: null;
|
|
27
27
|
action_type: "LOCK_DOOR";
|
|
28
28
|
} | {
|
|
29
|
-
error: null;
|
|
30
29
|
status: "pending";
|
|
31
30
|
action_attempt_id: string;
|
|
31
|
+
error: null;
|
|
32
32
|
result: null;
|
|
33
33
|
action_type: "UNLOCK_DOOR";
|
|
34
34
|
} | {
|
|
35
|
-
error: null;
|
|
36
35
|
status: "success";
|
|
37
36
|
action_attempt_id: string;
|
|
37
|
+
error: null;
|
|
38
38
|
result: {};
|
|
39
39
|
action_type: "UNLOCK_DOOR";
|
|
40
40
|
} | {
|
|
41
|
+
status: "error";
|
|
42
|
+
action_attempt_id: string;
|
|
41
43
|
error: {
|
|
42
|
-
type: string;
|
|
43
44
|
message: string;
|
|
45
|
+
type: string;
|
|
44
46
|
};
|
|
45
|
-
status: "error";
|
|
46
|
-
action_attempt_id: string;
|
|
47
47
|
result: null;
|
|
48
48
|
action_type: "UNLOCK_DOOR";
|
|
49
49
|
} | {
|
|
50
|
-
error: null;
|
|
51
50
|
status: "pending";
|
|
52
51
|
action_attempt_id: string;
|
|
52
|
+
error: null;
|
|
53
53
|
result: null;
|
|
54
54
|
action_type: "SCAN_CREDENTIAL";
|
|
55
55
|
} | {
|
|
56
|
-
error: null;
|
|
57
56
|
status: "success";
|
|
58
57
|
action_attempt_id: string;
|
|
58
|
+
error: null;
|
|
59
59
|
result: {
|
|
60
60
|
warnings: {
|
|
61
61
|
warning_code: "acs_credential_on_encoder_out_of_sync" | "acs_credential_on_seam_not_found";
|
|
@@ -68,10 +68,10 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
68
68
|
is_issued: boolean | null;
|
|
69
69
|
card_number: string | null;
|
|
70
70
|
visionline_metadata?: {
|
|
71
|
-
expired: boolean;
|
|
72
71
|
card_id: string;
|
|
73
72
|
cancelled: boolean;
|
|
74
73
|
discarded: boolean;
|
|
74
|
+
expired: boolean;
|
|
75
75
|
overwritten: boolean;
|
|
76
76
|
pending_auto_update: boolean;
|
|
77
77
|
card_format: "TLCode" | "rfid48";
|
|
@@ -230,30 +230,30 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
230
230
|
};
|
|
231
231
|
action_type: "SCAN_CREDENTIAL";
|
|
232
232
|
} | {
|
|
233
|
+
status: "error";
|
|
234
|
+
action_attempt_id: string;
|
|
233
235
|
error: {
|
|
234
|
-
type: "uncategorized_error";
|
|
235
236
|
message: string;
|
|
237
|
+
type: "uncategorized_error";
|
|
236
238
|
} | {
|
|
237
|
-
type: "action_attempt_expired";
|
|
238
239
|
message: string;
|
|
240
|
+
type: "action_attempt_expired";
|
|
239
241
|
} | {
|
|
240
|
-
type: "no_credential_on_encoder";
|
|
241
242
|
message: string;
|
|
243
|
+
type: "no_credential_on_encoder";
|
|
242
244
|
};
|
|
243
|
-
status: "error";
|
|
244
|
-
action_attempt_id: string;
|
|
245
245
|
result: null;
|
|
246
246
|
action_type: "SCAN_CREDENTIAL";
|
|
247
247
|
} | {
|
|
248
|
-
error: null;
|
|
249
248
|
status: "pending";
|
|
250
249
|
action_attempt_id: string;
|
|
250
|
+
error: null;
|
|
251
251
|
result: null;
|
|
252
252
|
action_type: "ENCODE_CREDENTIAL";
|
|
253
253
|
} | {
|
|
254
|
-
error: null;
|
|
255
254
|
status: "success";
|
|
256
255
|
action_attempt_id: string;
|
|
256
|
+
error: null;
|
|
257
257
|
result: {
|
|
258
258
|
display_name: string;
|
|
259
259
|
workspace_id: string;
|
|
@@ -401,383 +401,383 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
401
401
|
};
|
|
402
402
|
action_type: "ENCODE_CREDENTIAL";
|
|
403
403
|
} | {
|
|
404
|
+
status: "error";
|
|
405
|
+
action_attempt_id: string;
|
|
404
406
|
error: {
|
|
405
|
-
type: "uncategorized_error";
|
|
406
407
|
message: string;
|
|
408
|
+
type: "uncategorized_error";
|
|
407
409
|
} | {
|
|
408
|
-
type: "action_attempt_expired";
|
|
409
410
|
message: string;
|
|
411
|
+
type: "action_attempt_expired";
|
|
410
412
|
} | {
|
|
411
|
-
type: "no_credential_on_encoder";
|
|
412
413
|
message: string;
|
|
414
|
+
type: "no_credential_on_encoder";
|
|
413
415
|
} | {
|
|
414
|
-
type: "incompatible_card_format";
|
|
415
416
|
message: string;
|
|
417
|
+
type: "incompatible_card_format";
|
|
416
418
|
} | {
|
|
417
|
-
type: "credential_cannot_be_reissued";
|
|
418
419
|
message: string;
|
|
420
|
+
type: "credential_cannot_be_reissued";
|
|
419
421
|
};
|
|
420
|
-
status: "error";
|
|
421
|
-
action_attempt_id: string;
|
|
422
422
|
result: null;
|
|
423
423
|
action_type: "ENCODE_CREDENTIAL";
|
|
424
424
|
} | {
|
|
425
|
-
error: null;
|
|
426
425
|
status: "pending";
|
|
427
426
|
action_attempt_id: string;
|
|
427
|
+
error: null;
|
|
428
428
|
result: null;
|
|
429
429
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
430
430
|
} | {
|
|
431
|
-
error: null;
|
|
432
431
|
status: "success";
|
|
433
432
|
action_attempt_id: string;
|
|
433
|
+
error: null;
|
|
434
434
|
result: {};
|
|
435
435
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
436
436
|
} | {
|
|
437
|
+
status: "error";
|
|
438
|
+
action_attempt_id: string;
|
|
437
439
|
error: {
|
|
438
|
-
type: string;
|
|
439
440
|
message: string;
|
|
441
|
+
type: string;
|
|
440
442
|
};
|
|
441
|
-
status: "error";
|
|
442
|
-
action_attempt_id: string;
|
|
443
443
|
result: null;
|
|
444
444
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
445
445
|
} | {
|
|
446
|
-
error: null;
|
|
447
446
|
status: "pending";
|
|
448
447
|
action_attempt_id: string;
|
|
448
|
+
error: null;
|
|
449
449
|
result: null;
|
|
450
450
|
action_type: "SET_FAN_MODE";
|
|
451
451
|
} | {
|
|
452
|
-
error: null;
|
|
453
452
|
status: "success";
|
|
454
453
|
action_attempt_id: string;
|
|
454
|
+
error: null;
|
|
455
455
|
result: {};
|
|
456
456
|
action_type: "SET_FAN_MODE";
|
|
457
457
|
} | {
|
|
458
|
+
status: "error";
|
|
459
|
+
action_attempt_id: string;
|
|
458
460
|
error: {
|
|
459
|
-
type: string;
|
|
460
461
|
message: string;
|
|
462
|
+
type: string;
|
|
461
463
|
};
|
|
462
|
-
status: "error";
|
|
463
|
-
action_attempt_id: string;
|
|
464
464
|
result: null;
|
|
465
465
|
action_type: "SET_FAN_MODE";
|
|
466
466
|
} | {
|
|
467
|
-
error: null;
|
|
468
467
|
status: "pending";
|
|
469
468
|
action_attempt_id: string;
|
|
469
|
+
error: null;
|
|
470
470
|
result: null;
|
|
471
471
|
action_type: "SET_HVAC_MODE";
|
|
472
472
|
} | {
|
|
473
|
-
error: null;
|
|
474
473
|
status: "success";
|
|
475
474
|
action_attempt_id: string;
|
|
475
|
+
error: null;
|
|
476
476
|
result: {};
|
|
477
477
|
action_type: "SET_HVAC_MODE";
|
|
478
478
|
} | {
|
|
479
|
+
status: "error";
|
|
480
|
+
action_attempt_id: string;
|
|
479
481
|
error: {
|
|
480
|
-
type: string;
|
|
481
482
|
message: string;
|
|
483
|
+
type: string;
|
|
482
484
|
};
|
|
483
|
-
status: "error";
|
|
484
|
-
action_attempt_id: string;
|
|
485
485
|
result: null;
|
|
486
486
|
action_type: "SET_HVAC_MODE";
|
|
487
487
|
} | {
|
|
488
|
-
error: null;
|
|
489
488
|
status: "pending";
|
|
490
489
|
action_attempt_id: string;
|
|
490
|
+
error: null;
|
|
491
491
|
result: null;
|
|
492
492
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
493
493
|
} | {
|
|
494
|
-
error: null;
|
|
495
494
|
status: "success";
|
|
496
495
|
action_attempt_id: string;
|
|
496
|
+
error: null;
|
|
497
497
|
result: {};
|
|
498
498
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
499
499
|
} | {
|
|
500
|
+
status: "error";
|
|
501
|
+
action_attempt_id: string;
|
|
500
502
|
error: {
|
|
501
|
-
type: string;
|
|
502
503
|
message: string;
|
|
504
|
+
type: string;
|
|
503
505
|
};
|
|
504
|
-
status: "error";
|
|
505
|
-
action_attempt_id: string;
|
|
506
506
|
result: null;
|
|
507
507
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
508
508
|
} | {
|
|
509
|
-
error: null;
|
|
510
509
|
status: "pending";
|
|
511
510
|
action_attempt_id: string;
|
|
511
|
+
error: null;
|
|
512
512
|
result: null;
|
|
513
513
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
514
514
|
} | {
|
|
515
|
-
error: null;
|
|
516
515
|
status: "success";
|
|
517
516
|
action_attempt_id: string;
|
|
517
|
+
error: null;
|
|
518
518
|
result: {};
|
|
519
519
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
520
520
|
} | {
|
|
521
|
+
status: "error";
|
|
522
|
+
action_attempt_id: string;
|
|
521
523
|
error: {
|
|
522
|
-
type: string;
|
|
523
524
|
message: string;
|
|
525
|
+
type: string;
|
|
524
526
|
};
|
|
525
|
-
status: "error";
|
|
526
|
-
action_attempt_id: string;
|
|
527
527
|
result: null;
|
|
528
528
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
529
529
|
} | {
|
|
530
|
-
error: null;
|
|
531
530
|
status: "pending";
|
|
532
531
|
action_attempt_id: string;
|
|
532
|
+
error: null;
|
|
533
533
|
result: null;
|
|
534
534
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
535
535
|
} | {
|
|
536
|
-
error: null;
|
|
537
536
|
status: "success";
|
|
538
537
|
action_attempt_id: string;
|
|
538
|
+
error: null;
|
|
539
539
|
result: {};
|
|
540
540
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
541
541
|
} | {
|
|
542
|
+
status: "error";
|
|
543
|
+
action_attempt_id: string;
|
|
542
544
|
error: {
|
|
543
|
-
type: string;
|
|
544
545
|
message: string;
|
|
546
|
+
type: string;
|
|
545
547
|
};
|
|
546
|
-
status: "error";
|
|
547
|
-
action_attempt_id: string;
|
|
548
548
|
result: null;
|
|
549
549
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
550
550
|
} | {
|
|
551
|
-
error: null;
|
|
552
551
|
status: "pending";
|
|
553
552
|
action_attempt_id: string;
|
|
553
|
+
error: null;
|
|
554
554
|
result: null;
|
|
555
555
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
556
556
|
} | {
|
|
557
|
-
error: null;
|
|
558
557
|
status: "success";
|
|
559
558
|
action_attempt_id: string;
|
|
559
|
+
error: null;
|
|
560
560
|
result: {};
|
|
561
561
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
562
562
|
} | {
|
|
563
|
+
status: "error";
|
|
564
|
+
action_attempt_id: string;
|
|
563
565
|
error: {
|
|
564
|
-
type: string;
|
|
565
566
|
message: string;
|
|
567
|
+
type: string;
|
|
566
568
|
};
|
|
567
|
-
status: "error";
|
|
568
|
-
action_attempt_id: string;
|
|
569
569
|
result: null;
|
|
570
570
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
571
571
|
} | {
|
|
572
|
-
error: null;
|
|
573
572
|
status: "pending";
|
|
574
573
|
action_attempt_id: string;
|
|
574
|
+
error: null;
|
|
575
575
|
result: null;
|
|
576
576
|
action_type: "SYNC_ACCESS_CODES";
|
|
577
577
|
} | {
|
|
578
|
-
error: null;
|
|
579
578
|
status: "success";
|
|
580
579
|
action_attempt_id: string;
|
|
580
|
+
error: null;
|
|
581
581
|
result: {};
|
|
582
582
|
action_type: "SYNC_ACCESS_CODES";
|
|
583
583
|
} | {
|
|
584
|
+
status: "error";
|
|
585
|
+
action_attempt_id: string;
|
|
584
586
|
error: {
|
|
585
|
-
type: string;
|
|
586
587
|
message: string;
|
|
588
|
+
type: string;
|
|
587
589
|
};
|
|
588
|
-
status: "error";
|
|
589
|
-
action_attempt_id: string;
|
|
590
590
|
result: null;
|
|
591
591
|
action_type: "SYNC_ACCESS_CODES";
|
|
592
592
|
} | {
|
|
593
|
-
error: null;
|
|
594
593
|
status: "pending";
|
|
595
594
|
action_attempt_id: string;
|
|
595
|
+
error: null;
|
|
596
596
|
result: null;
|
|
597
597
|
action_type: "CREATE_ACCESS_CODE";
|
|
598
598
|
} | {
|
|
599
|
-
error: null;
|
|
600
599
|
status: "success";
|
|
601
600
|
action_attempt_id: string;
|
|
601
|
+
error: null;
|
|
602
602
|
result: {
|
|
603
603
|
access_code?: any;
|
|
604
604
|
};
|
|
605
605
|
action_type: "CREATE_ACCESS_CODE";
|
|
606
606
|
} | {
|
|
607
|
+
status: "error";
|
|
608
|
+
action_attempt_id: string;
|
|
607
609
|
error: {
|
|
608
|
-
type: string;
|
|
609
610
|
message: string;
|
|
611
|
+
type: string;
|
|
610
612
|
};
|
|
611
|
-
status: "error";
|
|
612
|
-
action_attempt_id: string;
|
|
613
613
|
result: null;
|
|
614
614
|
action_type: "CREATE_ACCESS_CODE";
|
|
615
615
|
} | {
|
|
616
|
-
error: null;
|
|
617
616
|
status: "pending";
|
|
618
617
|
action_attempt_id: string;
|
|
618
|
+
error: null;
|
|
619
619
|
result: null;
|
|
620
620
|
action_type: "DELETE_ACCESS_CODE";
|
|
621
621
|
} | {
|
|
622
|
-
error: null;
|
|
623
622
|
status: "success";
|
|
624
623
|
action_attempt_id: string;
|
|
624
|
+
error: null;
|
|
625
625
|
result: {};
|
|
626
626
|
action_type: "DELETE_ACCESS_CODE";
|
|
627
627
|
} | {
|
|
628
|
+
status: "error";
|
|
629
|
+
action_attempt_id: string;
|
|
628
630
|
error: {
|
|
629
|
-
type: string;
|
|
630
631
|
message: string;
|
|
632
|
+
type: string;
|
|
631
633
|
};
|
|
632
|
-
status: "error";
|
|
633
|
-
action_attempt_id: string;
|
|
634
634
|
result: null;
|
|
635
635
|
action_type: "DELETE_ACCESS_CODE";
|
|
636
636
|
} | {
|
|
637
|
-
error: null;
|
|
638
637
|
status: "pending";
|
|
639
638
|
action_attempt_id: string;
|
|
639
|
+
error: null;
|
|
640
640
|
result: null;
|
|
641
641
|
action_type: "UPDATE_ACCESS_CODE";
|
|
642
642
|
} | {
|
|
643
|
-
error: null;
|
|
644
643
|
status: "success";
|
|
645
644
|
action_attempt_id: string;
|
|
645
|
+
error: null;
|
|
646
646
|
result: {
|
|
647
647
|
access_code?: any;
|
|
648
648
|
};
|
|
649
649
|
action_type: "UPDATE_ACCESS_CODE";
|
|
650
650
|
} | {
|
|
651
|
+
status: "error";
|
|
652
|
+
action_attempt_id: string;
|
|
651
653
|
error: {
|
|
652
|
-
type: string;
|
|
653
654
|
message: string;
|
|
655
|
+
type: string;
|
|
654
656
|
};
|
|
655
|
-
status: "error";
|
|
656
|
-
action_attempt_id: string;
|
|
657
657
|
result: null;
|
|
658
658
|
action_type: "UPDATE_ACCESS_CODE";
|
|
659
659
|
} | {
|
|
660
|
-
error: null;
|
|
661
660
|
status: "pending";
|
|
662
661
|
action_attempt_id: string;
|
|
662
|
+
error: null;
|
|
663
663
|
result: null;
|
|
664
664
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
665
665
|
} | {
|
|
666
|
-
error: null;
|
|
667
666
|
status: "success";
|
|
668
667
|
action_attempt_id: string;
|
|
668
|
+
error: null;
|
|
669
669
|
result: {
|
|
670
670
|
noise_threshold?: any;
|
|
671
671
|
};
|
|
672
672
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
673
673
|
} | {
|
|
674
|
+
status: "error";
|
|
675
|
+
action_attempt_id: string;
|
|
674
676
|
error: {
|
|
675
|
-
type: string;
|
|
676
677
|
message: string;
|
|
678
|
+
type: string;
|
|
677
679
|
};
|
|
678
|
-
status: "error";
|
|
679
|
-
action_attempt_id: string;
|
|
680
680
|
result: null;
|
|
681
681
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
682
682
|
} | {
|
|
683
|
-
error: null;
|
|
684
683
|
status: "pending";
|
|
685
684
|
action_attempt_id: string;
|
|
685
|
+
error: null;
|
|
686
686
|
result: null;
|
|
687
687
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
688
688
|
} | {
|
|
689
|
-
error: null;
|
|
690
689
|
status: "success";
|
|
691
690
|
action_attempt_id: string;
|
|
691
|
+
error: null;
|
|
692
692
|
result: {};
|
|
693
693
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
694
694
|
} | {
|
|
695
|
+
status: "error";
|
|
696
|
+
action_attempt_id: string;
|
|
695
697
|
error: {
|
|
696
|
-
type: string;
|
|
697
698
|
message: string;
|
|
699
|
+
type: string;
|
|
698
700
|
};
|
|
699
|
-
status: "error";
|
|
700
|
-
action_attempt_id: string;
|
|
701
701
|
result: null;
|
|
702
702
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
703
703
|
} | {
|
|
704
|
-
error: null;
|
|
705
704
|
status: "pending";
|
|
706
705
|
action_attempt_id: string;
|
|
706
|
+
error: null;
|
|
707
707
|
result: null;
|
|
708
708
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
709
709
|
} | {
|
|
710
|
-
error: null;
|
|
711
710
|
status: "success";
|
|
712
711
|
action_attempt_id: string;
|
|
712
|
+
error: null;
|
|
713
713
|
result: {
|
|
714
714
|
noise_threshold?: any;
|
|
715
715
|
};
|
|
716
716
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
717
717
|
} | {
|
|
718
|
+
status: "error";
|
|
719
|
+
action_attempt_id: string;
|
|
718
720
|
error: {
|
|
719
|
-
type: string;
|
|
720
721
|
message: string;
|
|
722
|
+
type: string;
|
|
721
723
|
};
|
|
722
|
-
status: "error";
|
|
723
|
-
action_attempt_id: string;
|
|
724
724
|
result: null;
|
|
725
725
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
726
726
|
}>(actionAttempt: T, actionAttempts: SeamHttpActionAttempts, { timeout, pollingInterval }: ResolveActionAttemptOptions) => Promise<Extract<T, {
|
|
727
727
|
status: 'success';
|
|
728
728
|
}>>;
|
|
729
729
|
export declare const isSeamActionAttemptError: <T extends {
|
|
730
|
-
error: null;
|
|
731
730
|
status: "pending";
|
|
732
731
|
action_attempt_id: string;
|
|
732
|
+
error: null;
|
|
733
733
|
result: null;
|
|
734
734
|
action_type: "LOCK_DOOR";
|
|
735
735
|
} | {
|
|
736
|
-
error: null;
|
|
737
736
|
status: "success";
|
|
738
737
|
action_attempt_id: string;
|
|
738
|
+
error: null;
|
|
739
739
|
result: {};
|
|
740
740
|
action_type: "LOCK_DOOR";
|
|
741
741
|
} | {
|
|
742
|
+
status: "error";
|
|
743
|
+
action_attempt_id: string;
|
|
742
744
|
error: {
|
|
743
|
-
type: string;
|
|
744
745
|
message: string;
|
|
746
|
+
type: string;
|
|
745
747
|
};
|
|
746
|
-
status: "error";
|
|
747
|
-
action_attempt_id: string;
|
|
748
748
|
result: null;
|
|
749
749
|
action_type: "LOCK_DOOR";
|
|
750
750
|
} | {
|
|
751
|
-
error: null;
|
|
752
751
|
status: "pending";
|
|
753
752
|
action_attempt_id: string;
|
|
753
|
+
error: null;
|
|
754
754
|
result: null;
|
|
755
755
|
action_type: "UNLOCK_DOOR";
|
|
756
756
|
} | {
|
|
757
|
-
error: null;
|
|
758
757
|
status: "success";
|
|
759
758
|
action_attempt_id: string;
|
|
759
|
+
error: null;
|
|
760
760
|
result: {};
|
|
761
761
|
action_type: "UNLOCK_DOOR";
|
|
762
762
|
} | {
|
|
763
|
+
status: "error";
|
|
764
|
+
action_attempt_id: string;
|
|
763
765
|
error: {
|
|
764
|
-
type: string;
|
|
765
766
|
message: string;
|
|
767
|
+
type: string;
|
|
766
768
|
};
|
|
767
|
-
status: "error";
|
|
768
|
-
action_attempt_id: string;
|
|
769
769
|
result: null;
|
|
770
770
|
action_type: "UNLOCK_DOOR";
|
|
771
771
|
} | {
|
|
772
|
-
error: null;
|
|
773
772
|
status: "pending";
|
|
774
773
|
action_attempt_id: string;
|
|
774
|
+
error: null;
|
|
775
775
|
result: null;
|
|
776
776
|
action_type: "SCAN_CREDENTIAL";
|
|
777
777
|
} | {
|
|
778
|
-
error: null;
|
|
779
778
|
status: "success";
|
|
780
779
|
action_attempt_id: string;
|
|
780
|
+
error: null;
|
|
781
781
|
result: {
|
|
782
782
|
warnings: {
|
|
783
783
|
warning_code: "acs_credential_on_encoder_out_of_sync" | "acs_credential_on_seam_not_found";
|
|
@@ -790,10 +790,10 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
790
790
|
is_issued: boolean | null;
|
|
791
791
|
card_number: string | null;
|
|
792
792
|
visionline_metadata?: {
|
|
793
|
-
expired: boolean;
|
|
794
793
|
card_id: string;
|
|
795
794
|
cancelled: boolean;
|
|
796
795
|
discarded: boolean;
|
|
796
|
+
expired: boolean;
|
|
797
797
|
overwritten: boolean;
|
|
798
798
|
pending_auto_update: boolean;
|
|
799
799
|
card_format: "TLCode" | "rfid48";
|
|
@@ -952,30 +952,30 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
952
952
|
};
|
|
953
953
|
action_type: "SCAN_CREDENTIAL";
|
|
954
954
|
} | {
|
|
955
|
+
status: "error";
|
|
956
|
+
action_attempt_id: string;
|
|
955
957
|
error: {
|
|
956
|
-
type: "uncategorized_error";
|
|
957
958
|
message: string;
|
|
959
|
+
type: "uncategorized_error";
|
|
958
960
|
} | {
|
|
959
|
-
type: "action_attempt_expired";
|
|
960
961
|
message: string;
|
|
962
|
+
type: "action_attempt_expired";
|
|
961
963
|
} | {
|
|
962
|
-
type: "no_credential_on_encoder";
|
|
963
964
|
message: string;
|
|
965
|
+
type: "no_credential_on_encoder";
|
|
964
966
|
};
|
|
965
|
-
status: "error";
|
|
966
|
-
action_attempt_id: string;
|
|
967
967
|
result: null;
|
|
968
968
|
action_type: "SCAN_CREDENTIAL";
|
|
969
969
|
} | {
|
|
970
|
-
error: null;
|
|
971
970
|
status: "pending";
|
|
972
971
|
action_attempt_id: string;
|
|
972
|
+
error: null;
|
|
973
973
|
result: null;
|
|
974
974
|
action_type: "ENCODE_CREDENTIAL";
|
|
975
975
|
} | {
|
|
976
|
-
error: null;
|
|
977
976
|
status: "success";
|
|
978
977
|
action_attempt_id: string;
|
|
978
|
+
error: null;
|
|
979
979
|
result: {
|
|
980
980
|
display_name: string;
|
|
981
981
|
workspace_id: string;
|
|
@@ -1123,326 +1123,326 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
1123
1123
|
};
|
|
1124
1124
|
action_type: "ENCODE_CREDENTIAL";
|
|
1125
1125
|
} | {
|
|
1126
|
+
status: "error";
|
|
1127
|
+
action_attempt_id: string;
|
|
1126
1128
|
error: {
|
|
1127
|
-
type: "uncategorized_error";
|
|
1128
1129
|
message: string;
|
|
1130
|
+
type: "uncategorized_error";
|
|
1129
1131
|
} | {
|
|
1130
|
-
type: "action_attempt_expired";
|
|
1131
1132
|
message: string;
|
|
1133
|
+
type: "action_attempt_expired";
|
|
1132
1134
|
} | {
|
|
1133
|
-
type: "no_credential_on_encoder";
|
|
1134
1135
|
message: string;
|
|
1136
|
+
type: "no_credential_on_encoder";
|
|
1135
1137
|
} | {
|
|
1136
|
-
type: "incompatible_card_format";
|
|
1137
1138
|
message: string;
|
|
1139
|
+
type: "incompatible_card_format";
|
|
1138
1140
|
} | {
|
|
1139
|
-
type: "credential_cannot_be_reissued";
|
|
1140
1141
|
message: string;
|
|
1142
|
+
type: "credential_cannot_be_reissued";
|
|
1141
1143
|
};
|
|
1142
|
-
status: "error";
|
|
1143
|
-
action_attempt_id: string;
|
|
1144
1144
|
result: null;
|
|
1145
1145
|
action_type: "ENCODE_CREDENTIAL";
|
|
1146
1146
|
} | {
|
|
1147
|
-
error: null;
|
|
1148
1147
|
status: "pending";
|
|
1149
1148
|
action_attempt_id: string;
|
|
1149
|
+
error: null;
|
|
1150
1150
|
result: null;
|
|
1151
1151
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
1152
1152
|
} | {
|
|
1153
|
-
error: null;
|
|
1154
1153
|
status: "success";
|
|
1155
1154
|
action_attempt_id: string;
|
|
1155
|
+
error: null;
|
|
1156
1156
|
result: {};
|
|
1157
1157
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
1158
1158
|
} | {
|
|
1159
|
+
status: "error";
|
|
1160
|
+
action_attempt_id: string;
|
|
1159
1161
|
error: {
|
|
1160
|
-
type: string;
|
|
1161
1162
|
message: string;
|
|
1163
|
+
type: string;
|
|
1162
1164
|
};
|
|
1163
|
-
status: "error";
|
|
1164
|
-
action_attempt_id: string;
|
|
1165
1165
|
result: null;
|
|
1166
1166
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
1167
1167
|
} | {
|
|
1168
|
-
error: null;
|
|
1169
1168
|
status: "pending";
|
|
1170
1169
|
action_attempt_id: string;
|
|
1170
|
+
error: null;
|
|
1171
1171
|
result: null;
|
|
1172
1172
|
action_type: "SET_FAN_MODE";
|
|
1173
1173
|
} | {
|
|
1174
|
-
error: null;
|
|
1175
1174
|
status: "success";
|
|
1176
1175
|
action_attempt_id: string;
|
|
1176
|
+
error: null;
|
|
1177
1177
|
result: {};
|
|
1178
1178
|
action_type: "SET_FAN_MODE";
|
|
1179
1179
|
} | {
|
|
1180
|
+
status: "error";
|
|
1181
|
+
action_attempt_id: string;
|
|
1180
1182
|
error: {
|
|
1181
|
-
type: string;
|
|
1182
1183
|
message: string;
|
|
1184
|
+
type: string;
|
|
1183
1185
|
};
|
|
1184
|
-
status: "error";
|
|
1185
|
-
action_attempt_id: string;
|
|
1186
1186
|
result: null;
|
|
1187
1187
|
action_type: "SET_FAN_MODE";
|
|
1188
1188
|
} | {
|
|
1189
|
-
error: null;
|
|
1190
1189
|
status: "pending";
|
|
1191
1190
|
action_attempt_id: string;
|
|
1191
|
+
error: null;
|
|
1192
1192
|
result: null;
|
|
1193
1193
|
action_type: "SET_HVAC_MODE";
|
|
1194
1194
|
} | {
|
|
1195
|
-
error: null;
|
|
1196
1195
|
status: "success";
|
|
1197
1196
|
action_attempt_id: string;
|
|
1197
|
+
error: null;
|
|
1198
1198
|
result: {};
|
|
1199
1199
|
action_type: "SET_HVAC_MODE";
|
|
1200
1200
|
} | {
|
|
1201
|
+
status: "error";
|
|
1202
|
+
action_attempt_id: string;
|
|
1201
1203
|
error: {
|
|
1202
|
-
type: string;
|
|
1203
1204
|
message: string;
|
|
1205
|
+
type: string;
|
|
1204
1206
|
};
|
|
1205
|
-
status: "error";
|
|
1206
|
-
action_attempt_id: string;
|
|
1207
1207
|
result: null;
|
|
1208
1208
|
action_type: "SET_HVAC_MODE";
|
|
1209
1209
|
} | {
|
|
1210
|
-
error: null;
|
|
1211
1210
|
status: "pending";
|
|
1212
1211
|
action_attempt_id: string;
|
|
1212
|
+
error: null;
|
|
1213
1213
|
result: null;
|
|
1214
1214
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1215
1215
|
} | {
|
|
1216
|
-
error: null;
|
|
1217
1216
|
status: "success";
|
|
1218
1217
|
action_attempt_id: string;
|
|
1218
|
+
error: null;
|
|
1219
1219
|
result: {};
|
|
1220
1220
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1221
1221
|
} | {
|
|
1222
|
+
status: "error";
|
|
1223
|
+
action_attempt_id: string;
|
|
1222
1224
|
error: {
|
|
1223
|
-
type: string;
|
|
1224
1225
|
message: string;
|
|
1226
|
+
type: string;
|
|
1225
1227
|
};
|
|
1226
|
-
status: "error";
|
|
1227
|
-
action_attempt_id: string;
|
|
1228
1228
|
result: null;
|
|
1229
1229
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1230
1230
|
} | {
|
|
1231
|
-
error: null;
|
|
1232
1231
|
status: "pending";
|
|
1233
1232
|
action_attempt_id: string;
|
|
1233
|
+
error: null;
|
|
1234
1234
|
result: null;
|
|
1235
1235
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
1236
1236
|
} | {
|
|
1237
|
-
error: null;
|
|
1238
1237
|
status: "success";
|
|
1239
1238
|
action_attempt_id: string;
|
|
1239
|
+
error: null;
|
|
1240
1240
|
result: {};
|
|
1241
1241
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
1242
1242
|
} | {
|
|
1243
|
+
status: "error";
|
|
1244
|
+
action_attempt_id: string;
|
|
1243
1245
|
error: {
|
|
1244
|
-
type: string;
|
|
1245
1246
|
message: string;
|
|
1247
|
+
type: string;
|
|
1246
1248
|
};
|
|
1247
|
-
status: "error";
|
|
1248
|
-
action_attempt_id: string;
|
|
1249
1249
|
result: null;
|
|
1250
1250
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
1251
1251
|
} | {
|
|
1252
|
-
error: null;
|
|
1253
1252
|
status: "pending";
|
|
1254
1253
|
action_attempt_id: string;
|
|
1254
|
+
error: null;
|
|
1255
1255
|
result: null;
|
|
1256
1256
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
1257
1257
|
} | {
|
|
1258
|
-
error: null;
|
|
1259
1258
|
status: "success";
|
|
1260
1259
|
action_attempt_id: string;
|
|
1260
|
+
error: null;
|
|
1261
1261
|
result: {};
|
|
1262
1262
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
1263
1263
|
} | {
|
|
1264
|
+
status: "error";
|
|
1265
|
+
action_attempt_id: string;
|
|
1264
1266
|
error: {
|
|
1265
|
-
type: string;
|
|
1266
1267
|
message: string;
|
|
1268
|
+
type: string;
|
|
1267
1269
|
};
|
|
1268
|
-
status: "error";
|
|
1269
|
-
action_attempt_id: string;
|
|
1270
1270
|
result: null;
|
|
1271
1271
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
1272
1272
|
} | {
|
|
1273
|
-
error: null;
|
|
1274
1273
|
status: "pending";
|
|
1275
1274
|
action_attempt_id: string;
|
|
1275
|
+
error: null;
|
|
1276
1276
|
result: null;
|
|
1277
1277
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
1278
1278
|
} | {
|
|
1279
|
-
error: null;
|
|
1280
1279
|
status: "success";
|
|
1281
1280
|
action_attempt_id: string;
|
|
1281
|
+
error: null;
|
|
1282
1282
|
result: {};
|
|
1283
1283
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
1284
1284
|
} | {
|
|
1285
|
+
status: "error";
|
|
1286
|
+
action_attempt_id: string;
|
|
1285
1287
|
error: {
|
|
1286
|
-
type: string;
|
|
1287
1288
|
message: string;
|
|
1289
|
+
type: string;
|
|
1288
1290
|
};
|
|
1289
|
-
status: "error";
|
|
1290
|
-
action_attempt_id: string;
|
|
1291
1291
|
result: null;
|
|
1292
1292
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
1293
1293
|
} | {
|
|
1294
|
-
error: null;
|
|
1295
1294
|
status: "pending";
|
|
1296
1295
|
action_attempt_id: string;
|
|
1296
|
+
error: null;
|
|
1297
1297
|
result: null;
|
|
1298
1298
|
action_type: "SYNC_ACCESS_CODES";
|
|
1299
1299
|
} | {
|
|
1300
|
-
error: null;
|
|
1301
1300
|
status: "success";
|
|
1302
1301
|
action_attempt_id: string;
|
|
1302
|
+
error: null;
|
|
1303
1303
|
result: {};
|
|
1304
1304
|
action_type: "SYNC_ACCESS_CODES";
|
|
1305
1305
|
} | {
|
|
1306
|
+
status: "error";
|
|
1307
|
+
action_attempt_id: string;
|
|
1306
1308
|
error: {
|
|
1307
|
-
type: string;
|
|
1308
1309
|
message: string;
|
|
1310
|
+
type: string;
|
|
1309
1311
|
};
|
|
1310
|
-
status: "error";
|
|
1311
|
-
action_attempt_id: string;
|
|
1312
1312
|
result: null;
|
|
1313
1313
|
action_type: "SYNC_ACCESS_CODES";
|
|
1314
1314
|
} | {
|
|
1315
|
-
error: null;
|
|
1316
1315
|
status: "pending";
|
|
1317
1316
|
action_attempt_id: string;
|
|
1317
|
+
error: null;
|
|
1318
1318
|
result: null;
|
|
1319
1319
|
action_type: "CREATE_ACCESS_CODE";
|
|
1320
1320
|
} | {
|
|
1321
|
-
error: null;
|
|
1322
1321
|
status: "success";
|
|
1323
1322
|
action_attempt_id: string;
|
|
1323
|
+
error: null;
|
|
1324
1324
|
result: {
|
|
1325
1325
|
access_code?: any;
|
|
1326
1326
|
};
|
|
1327
1327
|
action_type: "CREATE_ACCESS_CODE";
|
|
1328
1328
|
} | {
|
|
1329
|
+
status: "error";
|
|
1330
|
+
action_attempt_id: string;
|
|
1329
1331
|
error: {
|
|
1330
|
-
type: string;
|
|
1331
1332
|
message: string;
|
|
1333
|
+
type: string;
|
|
1332
1334
|
};
|
|
1333
|
-
status: "error";
|
|
1334
|
-
action_attempt_id: string;
|
|
1335
1335
|
result: null;
|
|
1336
1336
|
action_type: "CREATE_ACCESS_CODE";
|
|
1337
1337
|
} | {
|
|
1338
|
-
error: null;
|
|
1339
1338
|
status: "pending";
|
|
1340
1339
|
action_attempt_id: string;
|
|
1340
|
+
error: null;
|
|
1341
1341
|
result: null;
|
|
1342
1342
|
action_type: "DELETE_ACCESS_CODE";
|
|
1343
1343
|
} | {
|
|
1344
|
-
error: null;
|
|
1345
1344
|
status: "success";
|
|
1346
1345
|
action_attempt_id: string;
|
|
1346
|
+
error: null;
|
|
1347
1347
|
result: {};
|
|
1348
1348
|
action_type: "DELETE_ACCESS_CODE";
|
|
1349
1349
|
} | {
|
|
1350
|
+
status: "error";
|
|
1351
|
+
action_attempt_id: string;
|
|
1350
1352
|
error: {
|
|
1351
|
-
type: string;
|
|
1352
1353
|
message: string;
|
|
1354
|
+
type: string;
|
|
1353
1355
|
};
|
|
1354
|
-
status: "error";
|
|
1355
|
-
action_attempt_id: string;
|
|
1356
1356
|
result: null;
|
|
1357
1357
|
action_type: "DELETE_ACCESS_CODE";
|
|
1358
1358
|
} | {
|
|
1359
|
-
error: null;
|
|
1360
1359
|
status: "pending";
|
|
1361
1360
|
action_attempt_id: string;
|
|
1361
|
+
error: null;
|
|
1362
1362
|
result: null;
|
|
1363
1363
|
action_type: "UPDATE_ACCESS_CODE";
|
|
1364
1364
|
} | {
|
|
1365
|
-
error: null;
|
|
1366
1365
|
status: "success";
|
|
1367
1366
|
action_attempt_id: string;
|
|
1367
|
+
error: null;
|
|
1368
1368
|
result: {
|
|
1369
1369
|
access_code?: any;
|
|
1370
1370
|
};
|
|
1371
1371
|
action_type: "UPDATE_ACCESS_CODE";
|
|
1372
1372
|
} | {
|
|
1373
|
+
status: "error";
|
|
1374
|
+
action_attempt_id: string;
|
|
1373
1375
|
error: {
|
|
1374
|
-
type: string;
|
|
1375
1376
|
message: string;
|
|
1377
|
+
type: string;
|
|
1376
1378
|
};
|
|
1377
|
-
status: "error";
|
|
1378
|
-
action_attempt_id: string;
|
|
1379
1379
|
result: null;
|
|
1380
1380
|
action_type: "UPDATE_ACCESS_CODE";
|
|
1381
1381
|
} | {
|
|
1382
|
-
error: null;
|
|
1383
1382
|
status: "pending";
|
|
1384
1383
|
action_attempt_id: string;
|
|
1384
|
+
error: null;
|
|
1385
1385
|
result: null;
|
|
1386
1386
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
1387
1387
|
} | {
|
|
1388
|
-
error: null;
|
|
1389
1388
|
status: "success";
|
|
1390
1389
|
action_attempt_id: string;
|
|
1390
|
+
error: null;
|
|
1391
1391
|
result: {
|
|
1392
1392
|
noise_threshold?: any;
|
|
1393
1393
|
};
|
|
1394
1394
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
1395
1395
|
} | {
|
|
1396
|
+
status: "error";
|
|
1397
|
+
action_attempt_id: string;
|
|
1396
1398
|
error: {
|
|
1397
|
-
type: string;
|
|
1398
1399
|
message: string;
|
|
1400
|
+
type: string;
|
|
1399
1401
|
};
|
|
1400
|
-
status: "error";
|
|
1401
|
-
action_attempt_id: string;
|
|
1402
1402
|
result: null;
|
|
1403
1403
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
1404
1404
|
} | {
|
|
1405
|
-
error: null;
|
|
1406
1405
|
status: "pending";
|
|
1407
1406
|
action_attempt_id: string;
|
|
1407
|
+
error: null;
|
|
1408
1408
|
result: null;
|
|
1409
1409
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
1410
1410
|
} | {
|
|
1411
|
-
error: null;
|
|
1412
1411
|
status: "success";
|
|
1413
1412
|
action_attempt_id: string;
|
|
1413
|
+
error: null;
|
|
1414
1414
|
result: {};
|
|
1415
1415
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
1416
1416
|
} | {
|
|
1417
|
+
status: "error";
|
|
1418
|
+
action_attempt_id: string;
|
|
1417
1419
|
error: {
|
|
1418
|
-
type: string;
|
|
1419
1420
|
message: string;
|
|
1421
|
+
type: string;
|
|
1420
1422
|
};
|
|
1421
|
-
status: "error";
|
|
1422
|
-
action_attempt_id: string;
|
|
1423
1423
|
result: null;
|
|
1424
1424
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
1425
1425
|
} | {
|
|
1426
|
-
error: null;
|
|
1427
1426
|
status: "pending";
|
|
1428
1427
|
action_attempt_id: string;
|
|
1428
|
+
error: null;
|
|
1429
1429
|
result: null;
|
|
1430
1430
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
1431
1431
|
} | {
|
|
1432
|
-
error: null;
|
|
1433
1432
|
status: "success";
|
|
1434
1433
|
action_attempt_id: string;
|
|
1434
|
+
error: null;
|
|
1435
1435
|
result: {
|
|
1436
1436
|
noise_threshold?: any;
|
|
1437
1437
|
};
|
|
1438
1438
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
1439
1439
|
} | {
|
|
1440
|
+
status: "error";
|
|
1441
|
+
action_attempt_id: string;
|
|
1440
1442
|
error: {
|
|
1441
|
-
type: string;
|
|
1442
1443
|
message: string;
|
|
1444
|
+
type: string;
|
|
1443
1445
|
};
|
|
1444
|
-
status: "error";
|
|
1445
|
-
action_attempt_id: string;
|
|
1446
1446
|
result: null;
|
|
1447
1447
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
1448
1448
|
}>(error: unknown) => error is SeamActionAttemptError<T>;
|
|
@@ -1451,57 +1451,57 @@ export declare class SeamActionAttemptError<T extends ActionAttempt> extends Err
|
|
|
1451
1451
|
constructor(message: string, actionAttempt: T);
|
|
1452
1452
|
}
|
|
1453
1453
|
export declare const isSeamActionAttemptFailedError: <T extends {
|
|
1454
|
-
error: null;
|
|
1455
1454
|
status: "pending";
|
|
1456
1455
|
action_attempt_id: string;
|
|
1456
|
+
error: null;
|
|
1457
1457
|
result: null;
|
|
1458
1458
|
action_type: "LOCK_DOOR";
|
|
1459
1459
|
} | {
|
|
1460
|
-
error: null;
|
|
1461
1460
|
status: "success";
|
|
1462
1461
|
action_attempt_id: string;
|
|
1462
|
+
error: null;
|
|
1463
1463
|
result: {};
|
|
1464
1464
|
action_type: "LOCK_DOOR";
|
|
1465
1465
|
} | {
|
|
1466
|
+
status: "error";
|
|
1467
|
+
action_attempt_id: string;
|
|
1466
1468
|
error: {
|
|
1467
|
-
type: string;
|
|
1468
1469
|
message: string;
|
|
1470
|
+
type: string;
|
|
1469
1471
|
};
|
|
1470
|
-
status: "error";
|
|
1471
|
-
action_attempt_id: string;
|
|
1472
1472
|
result: null;
|
|
1473
1473
|
action_type: "LOCK_DOOR";
|
|
1474
1474
|
} | {
|
|
1475
|
-
error: null;
|
|
1476
1475
|
status: "pending";
|
|
1477
1476
|
action_attempt_id: string;
|
|
1477
|
+
error: null;
|
|
1478
1478
|
result: null;
|
|
1479
1479
|
action_type: "UNLOCK_DOOR";
|
|
1480
1480
|
} | {
|
|
1481
|
-
error: null;
|
|
1482
1481
|
status: "success";
|
|
1483
1482
|
action_attempt_id: string;
|
|
1483
|
+
error: null;
|
|
1484
1484
|
result: {};
|
|
1485
1485
|
action_type: "UNLOCK_DOOR";
|
|
1486
1486
|
} | {
|
|
1487
|
+
status: "error";
|
|
1488
|
+
action_attempt_id: string;
|
|
1487
1489
|
error: {
|
|
1488
|
-
type: string;
|
|
1489
1490
|
message: string;
|
|
1491
|
+
type: string;
|
|
1490
1492
|
};
|
|
1491
|
-
status: "error";
|
|
1492
|
-
action_attempt_id: string;
|
|
1493
1493
|
result: null;
|
|
1494
1494
|
action_type: "UNLOCK_DOOR";
|
|
1495
1495
|
} | {
|
|
1496
|
-
error: null;
|
|
1497
1496
|
status: "pending";
|
|
1498
1497
|
action_attempt_id: string;
|
|
1498
|
+
error: null;
|
|
1499
1499
|
result: null;
|
|
1500
1500
|
action_type: "SCAN_CREDENTIAL";
|
|
1501
1501
|
} | {
|
|
1502
|
-
error: null;
|
|
1503
1502
|
status: "success";
|
|
1504
1503
|
action_attempt_id: string;
|
|
1504
|
+
error: null;
|
|
1505
1505
|
result: {
|
|
1506
1506
|
warnings: {
|
|
1507
1507
|
warning_code: "acs_credential_on_encoder_out_of_sync" | "acs_credential_on_seam_not_found";
|
|
@@ -1514,10 +1514,10 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1514
1514
|
is_issued: boolean | null;
|
|
1515
1515
|
card_number: string | null;
|
|
1516
1516
|
visionline_metadata?: {
|
|
1517
|
-
expired: boolean;
|
|
1518
1517
|
card_id: string;
|
|
1519
1518
|
cancelled: boolean;
|
|
1520
1519
|
discarded: boolean;
|
|
1520
|
+
expired: boolean;
|
|
1521
1521
|
overwritten: boolean;
|
|
1522
1522
|
pending_auto_update: boolean;
|
|
1523
1523
|
card_format: "TLCode" | "rfid48";
|
|
@@ -1676,30 +1676,30 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1676
1676
|
};
|
|
1677
1677
|
action_type: "SCAN_CREDENTIAL";
|
|
1678
1678
|
} | {
|
|
1679
|
+
status: "error";
|
|
1680
|
+
action_attempt_id: string;
|
|
1679
1681
|
error: {
|
|
1680
|
-
type: "uncategorized_error";
|
|
1681
1682
|
message: string;
|
|
1683
|
+
type: "uncategorized_error";
|
|
1682
1684
|
} | {
|
|
1683
|
-
type: "action_attempt_expired";
|
|
1684
1685
|
message: string;
|
|
1686
|
+
type: "action_attempt_expired";
|
|
1685
1687
|
} | {
|
|
1686
|
-
type: "no_credential_on_encoder";
|
|
1687
1688
|
message: string;
|
|
1689
|
+
type: "no_credential_on_encoder";
|
|
1688
1690
|
};
|
|
1689
|
-
status: "error";
|
|
1690
|
-
action_attempt_id: string;
|
|
1691
1691
|
result: null;
|
|
1692
1692
|
action_type: "SCAN_CREDENTIAL";
|
|
1693
1693
|
} | {
|
|
1694
|
-
error: null;
|
|
1695
1694
|
status: "pending";
|
|
1696
1695
|
action_attempt_id: string;
|
|
1696
|
+
error: null;
|
|
1697
1697
|
result: null;
|
|
1698
1698
|
action_type: "ENCODE_CREDENTIAL";
|
|
1699
1699
|
} | {
|
|
1700
|
-
error: null;
|
|
1701
1700
|
status: "success";
|
|
1702
1701
|
action_attempt_id: string;
|
|
1702
|
+
error: null;
|
|
1703
1703
|
result: {
|
|
1704
1704
|
display_name: string;
|
|
1705
1705
|
workspace_id: string;
|
|
@@ -1847,326 +1847,326 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1847
1847
|
};
|
|
1848
1848
|
action_type: "ENCODE_CREDENTIAL";
|
|
1849
1849
|
} | {
|
|
1850
|
+
status: "error";
|
|
1851
|
+
action_attempt_id: string;
|
|
1850
1852
|
error: {
|
|
1851
|
-
type: "uncategorized_error";
|
|
1852
1853
|
message: string;
|
|
1854
|
+
type: "uncategorized_error";
|
|
1853
1855
|
} | {
|
|
1854
|
-
type: "action_attempt_expired";
|
|
1855
1856
|
message: string;
|
|
1857
|
+
type: "action_attempt_expired";
|
|
1856
1858
|
} | {
|
|
1857
|
-
type: "no_credential_on_encoder";
|
|
1858
1859
|
message: string;
|
|
1860
|
+
type: "no_credential_on_encoder";
|
|
1859
1861
|
} | {
|
|
1860
|
-
type: "incompatible_card_format";
|
|
1861
1862
|
message: string;
|
|
1863
|
+
type: "incompatible_card_format";
|
|
1862
1864
|
} | {
|
|
1863
|
-
type: "credential_cannot_be_reissued";
|
|
1864
1865
|
message: string;
|
|
1866
|
+
type: "credential_cannot_be_reissued";
|
|
1865
1867
|
};
|
|
1866
|
-
status: "error";
|
|
1867
|
-
action_attempt_id: string;
|
|
1868
1868
|
result: null;
|
|
1869
1869
|
action_type: "ENCODE_CREDENTIAL";
|
|
1870
1870
|
} | {
|
|
1871
|
-
error: null;
|
|
1872
1871
|
status: "pending";
|
|
1873
1872
|
action_attempt_id: string;
|
|
1873
|
+
error: null;
|
|
1874
1874
|
result: null;
|
|
1875
1875
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
1876
1876
|
} | {
|
|
1877
|
-
error: null;
|
|
1878
1877
|
status: "success";
|
|
1879
1878
|
action_attempt_id: string;
|
|
1879
|
+
error: null;
|
|
1880
1880
|
result: {};
|
|
1881
1881
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
1882
1882
|
} | {
|
|
1883
|
+
status: "error";
|
|
1884
|
+
action_attempt_id: string;
|
|
1883
1885
|
error: {
|
|
1884
|
-
type: string;
|
|
1885
1886
|
message: string;
|
|
1887
|
+
type: string;
|
|
1886
1888
|
};
|
|
1887
|
-
status: "error";
|
|
1888
|
-
action_attempt_id: string;
|
|
1889
1889
|
result: null;
|
|
1890
1890
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
1891
1891
|
} | {
|
|
1892
|
-
error: null;
|
|
1893
1892
|
status: "pending";
|
|
1894
1893
|
action_attempt_id: string;
|
|
1894
|
+
error: null;
|
|
1895
1895
|
result: null;
|
|
1896
1896
|
action_type: "SET_FAN_MODE";
|
|
1897
1897
|
} | {
|
|
1898
|
-
error: null;
|
|
1899
1898
|
status: "success";
|
|
1900
1899
|
action_attempt_id: string;
|
|
1900
|
+
error: null;
|
|
1901
1901
|
result: {};
|
|
1902
1902
|
action_type: "SET_FAN_MODE";
|
|
1903
1903
|
} | {
|
|
1904
|
+
status: "error";
|
|
1905
|
+
action_attempt_id: string;
|
|
1904
1906
|
error: {
|
|
1905
|
-
type: string;
|
|
1906
1907
|
message: string;
|
|
1908
|
+
type: string;
|
|
1907
1909
|
};
|
|
1908
|
-
status: "error";
|
|
1909
|
-
action_attempt_id: string;
|
|
1910
1910
|
result: null;
|
|
1911
1911
|
action_type: "SET_FAN_MODE";
|
|
1912
1912
|
} | {
|
|
1913
|
-
error: null;
|
|
1914
1913
|
status: "pending";
|
|
1915
1914
|
action_attempt_id: string;
|
|
1915
|
+
error: null;
|
|
1916
1916
|
result: null;
|
|
1917
1917
|
action_type: "SET_HVAC_MODE";
|
|
1918
1918
|
} | {
|
|
1919
|
-
error: null;
|
|
1920
1919
|
status: "success";
|
|
1921
1920
|
action_attempt_id: string;
|
|
1921
|
+
error: null;
|
|
1922
1922
|
result: {};
|
|
1923
1923
|
action_type: "SET_HVAC_MODE";
|
|
1924
1924
|
} | {
|
|
1925
|
+
status: "error";
|
|
1926
|
+
action_attempt_id: string;
|
|
1925
1927
|
error: {
|
|
1926
|
-
type: string;
|
|
1927
1928
|
message: string;
|
|
1929
|
+
type: string;
|
|
1928
1930
|
};
|
|
1929
|
-
status: "error";
|
|
1930
|
-
action_attempt_id: string;
|
|
1931
1931
|
result: null;
|
|
1932
1932
|
action_type: "SET_HVAC_MODE";
|
|
1933
1933
|
} | {
|
|
1934
|
-
error: null;
|
|
1935
1934
|
status: "pending";
|
|
1936
1935
|
action_attempt_id: string;
|
|
1936
|
+
error: null;
|
|
1937
1937
|
result: null;
|
|
1938
1938
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1939
1939
|
} | {
|
|
1940
|
-
error: null;
|
|
1941
1940
|
status: "success";
|
|
1942
1941
|
action_attempt_id: string;
|
|
1942
|
+
error: null;
|
|
1943
1943
|
result: {};
|
|
1944
1944
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1945
1945
|
} | {
|
|
1946
|
+
status: "error";
|
|
1947
|
+
action_attempt_id: string;
|
|
1946
1948
|
error: {
|
|
1947
|
-
type: string;
|
|
1948
1949
|
message: string;
|
|
1950
|
+
type: string;
|
|
1949
1951
|
};
|
|
1950
|
-
status: "error";
|
|
1951
|
-
action_attempt_id: string;
|
|
1952
1952
|
result: null;
|
|
1953
1953
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1954
1954
|
} | {
|
|
1955
|
-
error: null;
|
|
1956
1955
|
status: "pending";
|
|
1957
1956
|
action_attempt_id: string;
|
|
1957
|
+
error: null;
|
|
1958
1958
|
result: null;
|
|
1959
1959
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
1960
1960
|
} | {
|
|
1961
|
-
error: null;
|
|
1962
1961
|
status: "success";
|
|
1963
1962
|
action_attempt_id: string;
|
|
1963
|
+
error: null;
|
|
1964
1964
|
result: {};
|
|
1965
1965
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
1966
1966
|
} | {
|
|
1967
|
+
status: "error";
|
|
1968
|
+
action_attempt_id: string;
|
|
1967
1969
|
error: {
|
|
1968
|
-
type: string;
|
|
1969
1970
|
message: string;
|
|
1971
|
+
type: string;
|
|
1970
1972
|
};
|
|
1971
|
-
status: "error";
|
|
1972
|
-
action_attempt_id: string;
|
|
1973
1973
|
result: null;
|
|
1974
1974
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
1975
1975
|
} | {
|
|
1976
|
-
error: null;
|
|
1977
1976
|
status: "pending";
|
|
1978
1977
|
action_attempt_id: string;
|
|
1978
|
+
error: null;
|
|
1979
1979
|
result: null;
|
|
1980
1980
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
1981
1981
|
} | {
|
|
1982
|
-
error: null;
|
|
1983
1982
|
status: "success";
|
|
1984
1983
|
action_attempt_id: string;
|
|
1984
|
+
error: null;
|
|
1985
1985
|
result: {};
|
|
1986
1986
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
1987
1987
|
} | {
|
|
1988
|
+
status: "error";
|
|
1989
|
+
action_attempt_id: string;
|
|
1988
1990
|
error: {
|
|
1989
|
-
type: string;
|
|
1990
1991
|
message: string;
|
|
1992
|
+
type: string;
|
|
1991
1993
|
};
|
|
1992
|
-
status: "error";
|
|
1993
|
-
action_attempt_id: string;
|
|
1994
1994
|
result: null;
|
|
1995
1995
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
1996
1996
|
} | {
|
|
1997
|
-
error: null;
|
|
1998
1997
|
status: "pending";
|
|
1999
1998
|
action_attempt_id: string;
|
|
1999
|
+
error: null;
|
|
2000
2000
|
result: null;
|
|
2001
2001
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
2002
2002
|
} | {
|
|
2003
|
-
error: null;
|
|
2004
2003
|
status: "success";
|
|
2005
2004
|
action_attempt_id: string;
|
|
2005
|
+
error: null;
|
|
2006
2006
|
result: {};
|
|
2007
2007
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
2008
2008
|
} | {
|
|
2009
|
+
status: "error";
|
|
2010
|
+
action_attempt_id: string;
|
|
2009
2011
|
error: {
|
|
2010
|
-
type: string;
|
|
2011
2012
|
message: string;
|
|
2013
|
+
type: string;
|
|
2012
2014
|
};
|
|
2013
|
-
status: "error";
|
|
2014
|
-
action_attempt_id: string;
|
|
2015
2015
|
result: null;
|
|
2016
2016
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
2017
2017
|
} | {
|
|
2018
|
-
error: null;
|
|
2019
2018
|
status: "pending";
|
|
2020
2019
|
action_attempt_id: string;
|
|
2020
|
+
error: null;
|
|
2021
2021
|
result: null;
|
|
2022
2022
|
action_type: "SYNC_ACCESS_CODES";
|
|
2023
2023
|
} | {
|
|
2024
|
-
error: null;
|
|
2025
2024
|
status: "success";
|
|
2026
2025
|
action_attempt_id: string;
|
|
2026
|
+
error: null;
|
|
2027
2027
|
result: {};
|
|
2028
2028
|
action_type: "SYNC_ACCESS_CODES";
|
|
2029
2029
|
} | {
|
|
2030
|
+
status: "error";
|
|
2031
|
+
action_attempt_id: string;
|
|
2030
2032
|
error: {
|
|
2031
|
-
type: string;
|
|
2032
2033
|
message: string;
|
|
2034
|
+
type: string;
|
|
2033
2035
|
};
|
|
2034
|
-
status: "error";
|
|
2035
|
-
action_attempt_id: string;
|
|
2036
2036
|
result: null;
|
|
2037
2037
|
action_type: "SYNC_ACCESS_CODES";
|
|
2038
2038
|
} | {
|
|
2039
|
-
error: null;
|
|
2040
2039
|
status: "pending";
|
|
2041
2040
|
action_attempt_id: string;
|
|
2041
|
+
error: null;
|
|
2042
2042
|
result: null;
|
|
2043
2043
|
action_type: "CREATE_ACCESS_CODE";
|
|
2044
2044
|
} | {
|
|
2045
|
-
error: null;
|
|
2046
2045
|
status: "success";
|
|
2047
2046
|
action_attempt_id: string;
|
|
2047
|
+
error: null;
|
|
2048
2048
|
result: {
|
|
2049
2049
|
access_code?: any;
|
|
2050
2050
|
};
|
|
2051
2051
|
action_type: "CREATE_ACCESS_CODE";
|
|
2052
2052
|
} | {
|
|
2053
|
+
status: "error";
|
|
2054
|
+
action_attempt_id: string;
|
|
2053
2055
|
error: {
|
|
2054
|
-
type: string;
|
|
2055
2056
|
message: string;
|
|
2057
|
+
type: string;
|
|
2056
2058
|
};
|
|
2057
|
-
status: "error";
|
|
2058
|
-
action_attempt_id: string;
|
|
2059
2059
|
result: null;
|
|
2060
2060
|
action_type: "CREATE_ACCESS_CODE";
|
|
2061
2061
|
} | {
|
|
2062
|
-
error: null;
|
|
2063
2062
|
status: "pending";
|
|
2064
2063
|
action_attempt_id: string;
|
|
2064
|
+
error: null;
|
|
2065
2065
|
result: null;
|
|
2066
2066
|
action_type: "DELETE_ACCESS_CODE";
|
|
2067
2067
|
} | {
|
|
2068
|
-
error: null;
|
|
2069
2068
|
status: "success";
|
|
2070
2069
|
action_attempt_id: string;
|
|
2070
|
+
error: null;
|
|
2071
2071
|
result: {};
|
|
2072
2072
|
action_type: "DELETE_ACCESS_CODE";
|
|
2073
2073
|
} | {
|
|
2074
|
+
status: "error";
|
|
2075
|
+
action_attempt_id: string;
|
|
2074
2076
|
error: {
|
|
2075
|
-
type: string;
|
|
2076
2077
|
message: string;
|
|
2078
|
+
type: string;
|
|
2077
2079
|
};
|
|
2078
|
-
status: "error";
|
|
2079
|
-
action_attempt_id: string;
|
|
2080
2080
|
result: null;
|
|
2081
2081
|
action_type: "DELETE_ACCESS_CODE";
|
|
2082
2082
|
} | {
|
|
2083
|
-
error: null;
|
|
2084
2083
|
status: "pending";
|
|
2085
2084
|
action_attempt_id: string;
|
|
2085
|
+
error: null;
|
|
2086
2086
|
result: null;
|
|
2087
2087
|
action_type: "UPDATE_ACCESS_CODE";
|
|
2088
2088
|
} | {
|
|
2089
|
-
error: null;
|
|
2090
2089
|
status: "success";
|
|
2091
2090
|
action_attempt_id: string;
|
|
2091
|
+
error: null;
|
|
2092
2092
|
result: {
|
|
2093
2093
|
access_code?: any;
|
|
2094
2094
|
};
|
|
2095
2095
|
action_type: "UPDATE_ACCESS_CODE";
|
|
2096
2096
|
} | {
|
|
2097
|
+
status: "error";
|
|
2098
|
+
action_attempt_id: string;
|
|
2097
2099
|
error: {
|
|
2098
|
-
type: string;
|
|
2099
2100
|
message: string;
|
|
2101
|
+
type: string;
|
|
2100
2102
|
};
|
|
2101
|
-
status: "error";
|
|
2102
|
-
action_attempt_id: string;
|
|
2103
2103
|
result: null;
|
|
2104
2104
|
action_type: "UPDATE_ACCESS_CODE";
|
|
2105
2105
|
} | {
|
|
2106
|
-
error: null;
|
|
2107
2106
|
status: "pending";
|
|
2108
2107
|
action_attempt_id: string;
|
|
2108
|
+
error: null;
|
|
2109
2109
|
result: null;
|
|
2110
2110
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
2111
2111
|
} | {
|
|
2112
|
-
error: null;
|
|
2113
2112
|
status: "success";
|
|
2114
2113
|
action_attempt_id: string;
|
|
2114
|
+
error: null;
|
|
2115
2115
|
result: {
|
|
2116
2116
|
noise_threshold?: any;
|
|
2117
2117
|
};
|
|
2118
2118
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
2119
2119
|
} | {
|
|
2120
|
+
status: "error";
|
|
2121
|
+
action_attempt_id: string;
|
|
2120
2122
|
error: {
|
|
2121
|
-
type: string;
|
|
2122
2123
|
message: string;
|
|
2124
|
+
type: string;
|
|
2123
2125
|
};
|
|
2124
|
-
status: "error";
|
|
2125
|
-
action_attempt_id: string;
|
|
2126
2126
|
result: null;
|
|
2127
2127
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
2128
2128
|
} | {
|
|
2129
|
-
error: null;
|
|
2130
2129
|
status: "pending";
|
|
2131
2130
|
action_attempt_id: string;
|
|
2131
|
+
error: null;
|
|
2132
2132
|
result: null;
|
|
2133
2133
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
2134
2134
|
} | {
|
|
2135
|
-
error: null;
|
|
2136
2135
|
status: "success";
|
|
2137
2136
|
action_attempt_id: string;
|
|
2137
|
+
error: null;
|
|
2138
2138
|
result: {};
|
|
2139
2139
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
2140
2140
|
} | {
|
|
2141
|
+
status: "error";
|
|
2142
|
+
action_attempt_id: string;
|
|
2141
2143
|
error: {
|
|
2142
|
-
type: string;
|
|
2143
2144
|
message: string;
|
|
2145
|
+
type: string;
|
|
2144
2146
|
};
|
|
2145
|
-
status: "error";
|
|
2146
|
-
action_attempt_id: string;
|
|
2147
2147
|
result: null;
|
|
2148
2148
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
2149
2149
|
} | {
|
|
2150
|
-
error: null;
|
|
2151
2150
|
status: "pending";
|
|
2152
2151
|
action_attempt_id: string;
|
|
2152
|
+
error: null;
|
|
2153
2153
|
result: null;
|
|
2154
2154
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
2155
2155
|
} | {
|
|
2156
|
-
error: null;
|
|
2157
2156
|
status: "success";
|
|
2158
2157
|
action_attempt_id: string;
|
|
2158
|
+
error: null;
|
|
2159
2159
|
result: {
|
|
2160
2160
|
noise_threshold?: any;
|
|
2161
2161
|
};
|
|
2162
2162
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
2163
2163
|
} | {
|
|
2164
|
+
status: "error";
|
|
2165
|
+
action_attempt_id: string;
|
|
2164
2166
|
error: {
|
|
2165
|
-
type: string;
|
|
2166
2167
|
message: string;
|
|
2168
|
+
type: string;
|
|
2167
2169
|
};
|
|
2168
|
-
status: "error";
|
|
2169
|
-
action_attempt_id: string;
|
|
2170
2170
|
result: null;
|
|
2171
2171
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
2172
2172
|
}>(error: unknown) => error is SeamActionAttemptFailedError<T>;
|
|
@@ -2175,57 +2175,57 @@ export declare class SeamActionAttemptFailedError<T extends ActionAttempt> exten
|
|
|
2175
2175
|
constructor(actionAttempt: FailedActionAttempt<T>);
|
|
2176
2176
|
}
|
|
2177
2177
|
export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
2178
|
-
error: null;
|
|
2179
2178
|
status: "pending";
|
|
2180
2179
|
action_attempt_id: string;
|
|
2180
|
+
error: null;
|
|
2181
2181
|
result: null;
|
|
2182
2182
|
action_type: "LOCK_DOOR";
|
|
2183
2183
|
} | {
|
|
2184
|
-
error: null;
|
|
2185
2184
|
status: "success";
|
|
2186
2185
|
action_attempt_id: string;
|
|
2186
|
+
error: null;
|
|
2187
2187
|
result: {};
|
|
2188
2188
|
action_type: "LOCK_DOOR";
|
|
2189
2189
|
} | {
|
|
2190
|
+
status: "error";
|
|
2191
|
+
action_attempt_id: string;
|
|
2190
2192
|
error: {
|
|
2191
|
-
type: string;
|
|
2192
2193
|
message: string;
|
|
2194
|
+
type: string;
|
|
2193
2195
|
};
|
|
2194
|
-
status: "error";
|
|
2195
|
-
action_attempt_id: string;
|
|
2196
2196
|
result: null;
|
|
2197
2197
|
action_type: "LOCK_DOOR";
|
|
2198
2198
|
} | {
|
|
2199
|
-
error: null;
|
|
2200
2199
|
status: "pending";
|
|
2201
2200
|
action_attempt_id: string;
|
|
2201
|
+
error: null;
|
|
2202
2202
|
result: null;
|
|
2203
2203
|
action_type: "UNLOCK_DOOR";
|
|
2204
2204
|
} | {
|
|
2205
|
-
error: null;
|
|
2206
2205
|
status: "success";
|
|
2207
2206
|
action_attempt_id: string;
|
|
2207
|
+
error: null;
|
|
2208
2208
|
result: {};
|
|
2209
2209
|
action_type: "UNLOCK_DOOR";
|
|
2210
2210
|
} | {
|
|
2211
|
+
status: "error";
|
|
2212
|
+
action_attempt_id: string;
|
|
2211
2213
|
error: {
|
|
2212
|
-
type: string;
|
|
2213
2214
|
message: string;
|
|
2215
|
+
type: string;
|
|
2214
2216
|
};
|
|
2215
|
-
status: "error";
|
|
2216
|
-
action_attempt_id: string;
|
|
2217
2217
|
result: null;
|
|
2218
2218
|
action_type: "UNLOCK_DOOR";
|
|
2219
2219
|
} | {
|
|
2220
|
-
error: null;
|
|
2221
2220
|
status: "pending";
|
|
2222
2221
|
action_attempt_id: string;
|
|
2222
|
+
error: null;
|
|
2223
2223
|
result: null;
|
|
2224
2224
|
action_type: "SCAN_CREDENTIAL";
|
|
2225
2225
|
} | {
|
|
2226
|
-
error: null;
|
|
2227
2226
|
status: "success";
|
|
2228
2227
|
action_attempt_id: string;
|
|
2228
|
+
error: null;
|
|
2229
2229
|
result: {
|
|
2230
2230
|
warnings: {
|
|
2231
2231
|
warning_code: "acs_credential_on_encoder_out_of_sync" | "acs_credential_on_seam_not_found";
|
|
@@ -2238,10 +2238,10 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2238
2238
|
is_issued: boolean | null;
|
|
2239
2239
|
card_number: string | null;
|
|
2240
2240
|
visionline_metadata?: {
|
|
2241
|
-
expired: boolean;
|
|
2242
2241
|
card_id: string;
|
|
2243
2242
|
cancelled: boolean;
|
|
2244
2243
|
discarded: boolean;
|
|
2244
|
+
expired: boolean;
|
|
2245
2245
|
overwritten: boolean;
|
|
2246
2246
|
pending_auto_update: boolean;
|
|
2247
2247
|
card_format: "TLCode" | "rfid48";
|
|
@@ -2400,30 +2400,30 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2400
2400
|
};
|
|
2401
2401
|
action_type: "SCAN_CREDENTIAL";
|
|
2402
2402
|
} | {
|
|
2403
|
+
status: "error";
|
|
2404
|
+
action_attempt_id: string;
|
|
2403
2405
|
error: {
|
|
2404
|
-
type: "uncategorized_error";
|
|
2405
2406
|
message: string;
|
|
2407
|
+
type: "uncategorized_error";
|
|
2406
2408
|
} | {
|
|
2407
|
-
type: "action_attempt_expired";
|
|
2408
2409
|
message: string;
|
|
2410
|
+
type: "action_attempt_expired";
|
|
2409
2411
|
} | {
|
|
2410
|
-
type: "no_credential_on_encoder";
|
|
2411
2412
|
message: string;
|
|
2413
|
+
type: "no_credential_on_encoder";
|
|
2412
2414
|
};
|
|
2413
|
-
status: "error";
|
|
2414
|
-
action_attempt_id: string;
|
|
2415
2415
|
result: null;
|
|
2416
2416
|
action_type: "SCAN_CREDENTIAL";
|
|
2417
2417
|
} | {
|
|
2418
|
-
error: null;
|
|
2419
2418
|
status: "pending";
|
|
2420
2419
|
action_attempt_id: string;
|
|
2420
|
+
error: null;
|
|
2421
2421
|
result: null;
|
|
2422
2422
|
action_type: "ENCODE_CREDENTIAL";
|
|
2423
2423
|
} | {
|
|
2424
|
-
error: null;
|
|
2425
2424
|
status: "success";
|
|
2426
2425
|
action_attempt_id: string;
|
|
2426
|
+
error: null;
|
|
2427
2427
|
result: {
|
|
2428
2428
|
display_name: string;
|
|
2429
2429
|
workspace_id: string;
|
|
@@ -2571,326 +2571,326 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2571
2571
|
};
|
|
2572
2572
|
action_type: "ENCODE_CREDENTIAL";
|
|
2573
2573
|
} | {
|
|
2574
|
+
status: "error";
|
|
2575
|
+
action_attempt_id: string;
|
|
2574
2576
|
error: {
|
|
2575
|
-
type: "uncategorized_error";
|
|
2576
2577
|
message: string;
|
|
2578
|
+
type: "uncategorized_error";
|
|
2577
2579
|
} | {
|
|
2578
|
-
type: "action_attempt_expired";
|
|
2579
2580
|
message: string;
|
|
2581
|
+
type: "action_attempt_expired";
|
|
2580
2582
|
} | {
|
|
2581
|
-
type: "no_credential_on_encoder";
|
|
2582
2583
|
message: string;
|
|
2584
|
+
type: "no_credential_on_encoder";
|
|
2583
2585
|
} | {
|
|
2584
|
-
type: "incompatible_card_format";
|
|
2585
2586
|
message: string;
|
|
2587
|
+
type: "incompatible_card_format";
|
|
2586
2588
|
} | {
|
|
2587
|
-
type: "credential_cannot_be_reissued";
|
|
2588
2589
|
message: string;
|
|
2590
|
+
type: "credential_cannot_be_reissued";
|
|
2589
2591
|
};
|
|
2590
|
-
status: "error";
|
|
2591
|
-
action_attempt_id: string;
|
|
2592
2592
|
result: null;
|
|
2593
2593
|
action_type: "ENCODE_CREDENTIAL";
|
|
2594
2594
|
} | {
|
|
2595
|
-
error: null;
|
|
2596
2595
|
status: "pending";
|
|
2597
2596
|
action_attempt_id: string;
|
|
2597
|
+
error: null;
|
|
2598
2598
|
result: null;
|
|
2599
2599
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
2600
2600
|
} | {
|
|
2601
|
-
error: null;
|
|
2602
2601
|
status: "success";
|
|
2603
2602
|
action_attempt_id: string;
|
|
2603
|
+
error: null;
|
|
2604
2604
|
result: {};
|
|
2605
2605
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
2606
2606
|
} | {
|
|
2607
|
+
status: "error";
|
|
2608
|
+
action_attempt_id: string;
|
|
2607
2609
|
error: {
|
|
2608
|
-
type: string;
|
|
2609
2610
|
message: string;
|
|
2611
|
+
type: string;
|
|
2610
2612
|
};
|
|
2611
|
-
status: "error";
|
|
2612
|
-
action_attempt_id: string;
|
|
2613
2613
|
result: null;
|
|
2614
2614
|
action_type: "RESET_SANDBOX_WORKSPACE";
|
|
2615
2615
|
} | {
|
|
2616
|
-
error: null;
|
|
2617
2616
|
status: "pending";
|
|
2618
2617
|
action_attempt_id: string;
|
|
2618
|
+
error: null;
|
|
2619
2619
|
result: null;
|
|
2620
2620
|
action_type: "SET_FAN_MODE";
|
|
2621
2621
|
} | {
|
|
2622
|
-
error: null;
|
|
2623
2622
|
status: "success";
|
|
2624
2623
|
action_attempt_id: string;
|
|
2624
|
+
error: null;
|
|
2625
2625
|
result: {};
|
|
2626
2626
|
action_type: "SET_FAN_MODE";
|
|
2627
2627
|
} | {
|
|
2628
|
+
status: "error";
|
|
2629
|
+
action_attempt_id: string;
|
|
2628
2630
|
error: {
|
|
2629
|
-
type: string;
|
|
2630
2631
|
message: string;
|
|
2632
|
+
type: string;
|
|
2631
2633
|
};
|
|
2632
|
-
status: "error";
|
|
2633
|
-
action_attempt_id: string;
|
|
2634
2634
|
result: null;
|
|
2635
2635
|
action_type: "SET_FAN_MODE";
|
|
2636
2636
|
} | {
|
|
2637
|
-
error: null;
|
|
2638
2637
|
status: "pending";
|
|
2639
2638
|
action_attempt_id: string;
|
|
2639
|
+
error: null;
|
|
2640
2640
|
result: null;
|
|
2641
2641
|
action_type: "SET_HVAC_MODE";
|
|
2642
2642
|
} | {
|
|
2643
|
-
error: null;
|
|
2644
2643
|
status: "success";
|
|
2645
2644
|
action_attempt_id: string;
|
|
2645
|
+
error: null;
|
|
2646
2646
|
result: {};
|
|
2647
2647
|
action_type: "SET_HVAC_MODE";
|
|
2648
2648
|
} | {
|
|
2649
|
+
status: "error";
|
|
2650
|
+
action_attempt_id: string;
|
|
2649
2651
|
error: {
|
|
2650
|
-
type: string;
|
|
2651
2652
|
message: string;
|
|
2653
|
+
type: string;
|
|
2652
2654
|
};
|
|
2653
|
-
status: "error";
|
|
2654
|
-
action_attempt_id: string;
|
|
2655
2655
|
result: null;
|
|
2656
2656
|
action_type: "SET_HVAC_MODE";
|
|
2657
2657
|
} | {
|
|
2658
|
-
error: null;
|
|
2659
2658
|
status: "pending";
|
|
2660
2659
|
action_attempt_id: string;
|
|
2660
|
+
error: null;
|
|
2661
2661
|
result: null;
|
|
2662
2662
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
2663
2663
|
} | {
|
|
2664
|
-
error: null;
|
|
2665
2664
|
status: "success";
|
|
2666
2665
|
action_attempt_id: string;
|
|
2666
|
+
error: null;
|
|
2667
2667
|
result: {};
|
|
2668
2668
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
2669
2669
|
} | {
|
|
2670
|
+
status: "error";
|
|
2671
|
+
action_attempt_id: string;
|
|
2670
2672
|
error: {
|
|
2671
|
-
type: string;
|
|
2672
2673
|
message: string;
|
|
2674
|
+
type: string;
|
|
2673
2675
|
};
|
|
2674
|
-
status: "error";
|
|
2675
|
-
action_attempt_id: string;
|
|
2676
2676
|
result: null;
|
|
2677
2677
|
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
2678
2678
|
} | {
|
|
2679
|
-
error: null;
|
|
2680
2679
|
status: "pending";
|
|
2681
2680
|
action_attempt_id: string;
|
|
2681
|
+
error: null;
|
|
2682
2682
|
result: null;
|
|
2683
2683
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
2684
2684
|
} | {
|
|
2685
|
-
error: null;
|
|
2686
2685
|
status: "success";
|
|
2687
2686
|
action_attempt_id: string;
|
|
2687
|
+
error: null;
|
|
2688
2688
|
result: {};
|
|
2689
2689
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
2690
2690
|
} | {
|
|
2691
|
+
status: "error";
|
|
2692
|
+
action_attempt_id: string;
|
|
2691
2693
|
error: {
|
|
2692
|
-
type: string;
|
|
2693
2694
|
message: string;
|
|
2695
|
+
type: string;
|
|
2694
2696
|
};
|
|
2695
|
-
status: "error";
|
|
2696
|
-
action_attempt_id: string;
|
|
2697
2697
|
result: null;
|
|
2698
2698
|
action_type: "SIMULATE_KEYPAD_CODE_ENTRY";
|
|
2699
2699
|
} | {
|
|
2700
|
-
error: null;
|
|
2701
2700
|
status: "pending";
|
|
2702
2701
|
action_attempt_id: string;
|
|
2702
|
+
error: null;
|
|
2703
2703
|
result: null;
|
|
2704
2704
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
2705
2705
|
} | {
|
|
2706
|
-
error: null;
|
|
2707
2706
|
status: "success";
|
|
2708
2707
|
action_attempt_id: string;
|
|
2708
|
+
error: null;
|
|
2709
2709
|
result: {};
|
|
2710
2710
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
2711
2711
|
} | {
|
|
2712
|
+
status: "error";
|
|
2713
|
+
action_attempt_id: string;
|
|
2712
2714
|
error: {
|
|
2713
|
-
type: string;
|
|
2714
2715
|
message: string;
|
|
2716
|
+
type: string;
|
|
2715
2717
|
};
|
|
2716
|
-
status: "error";
|
|
2717
|
-
action_attempt_id: string;
|
|
2718
2718
|
result: null;
|
|
2719
2719
|
action_type: "SIMULATE_MANUAL_LOCK_VIA_KEYPAD";
|
|
2720
2720
|
} | {
|
|
2721
|
-
error: null;
|
|
2722
2721
|
status: "pending";
|
|
2723
2722
|
action_attempt_id: string;
|
|
2723
|
+
error: null;
|
|
2724
2724
|
result: null;
|
|
2725
2725
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
2726
2726
|
} | {
|
|
2727
|
-
error: null;
|
|
2728
2727
|
status: "success";
|
|
2729
2728
|
action_attempt_id: string;
|
|
2729
|
+
error: null;
|
|
2730
2730
|
result: {};
|
|
2731
2731
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
2732
2732
|
} | {
|
|
2733
|
+
status: "error";
|
|
2734
|
+
action_attempt_id: string;
|
|
2733
2735
|
error: {
|
|
2734
|
-
type: string;
|
|
2735
2736
|
message: string;
|
|
2737
|
+
type: string;
|
|
2736
2738
|
};
|
|
2737
|
-
status: "error";
|
|
2738
|
-
action_attempt_id: string;
|
|
2739
2739
|
result: null;
|
|
2740
2740
|
action_type: "PUSH_THERMOSTAT_PROGRAMS";
|
|
2741
2741
|
} | {
|
|
2742
|
-
error: null;
|
|
2743
2742
|
status: "pending";
|
|
2744
2743
|
action_attempt_id: string;
|
|
2744
|
+
error: null;
|
|
2745
2745
|
result: null;
|
|
2746
2746
|
action_type: "SYNC_ACCESS_CODES";
|
|
2747
2747
|
} | {
|
|
2748
|
-
error: null;
|
|
2749
2748
|
status: "success";
|
|
2750
2749
|
action_attempt_id: string;
|
|
2750
|
+
error: null;
|
|
2751
2751
|
result: {};
|
|
2752
2752
|
action_type: "SYNC_ACCESS_CODES";
|
|
2753
2753
|
} | {
|
|
2754
|
+
status: "error";
|
|
2755
|
+
action_attempt_id: string;
|
|
2754
2756
|
error: {
|
|
2755
|
-
type: string;
|
|
2756
2757
|
message: string;
|
|
2758
|
+
type: string;
|
|
2757
2759
|
};
|
|
2758
|
-
status: "error";
|
|
2759
|
-
action_attempt_id: string;
|
|
2760
2760
|
result: null;
|
|
2761
2761
|
action_type: "SYNC_ACCESS_CODES";
|
|
2762
2762
|
} | {
|
|
2763
|
-
error: null;
|
|
2764
2763
|
status: "pending";
|
|
2765
2764
|
action_attempt_id: string;
|
|
2765
|
+
error: null;
|
|
2766
2766
|
result: null;
|
|
2767
2767
|
action_type: "CREATE_ACCESS_CODE";
|
|
2768
2768
|
} | {
|
|
2769
|
-
error: null;
|
|
2770
2769
|
status: "success";
|
|
2771
2770
|
action_attempt_id: string;
|
|
2771
|
+
error: null;
|
|
2772
2772
|
result: {
|
|
2773
2773
|
access_code?: any;
|
|
2774
2774
|
};
|
|
2775
2775
|
action_type: "CREATE_ACCESS_CODE";
|
|
2776
2776
|
} | {
|
|
2777
|
+
status: "error";
|
|
2778
|
+
action_attempt_id: string;
|
|
2777
2779
|
error: {
|
|
2778
|
-
type: string;
|
|
2779
2780
|
message: string;
|
|
2781
|
+
type: string;
|
|
2780
2782
|
};
|
|
2781
|
-
status: "error";
|
|
2782
|
-
action_attempt_id: string;
|
|
2783
2783
|
result: null;
|
|
2784
2784
|
action_type: "CREATE_ACCESS_CODE";
|
|
2785
2785
|
} | {
|
|
2786
|
-
error: null;
|
|
2787
2786
|
status: "pending";
|
|
2788
2787
|
action_attempt_id: string;
|
|
2788
|
+
error: null;
|
|
2789
2789
|
result: null;
|
|
2790
2790
|
action_type: "DELETE_ACCESS_CODE";
|
|
2791
2791
|
} | {
|
|
2792
|
-
error: null;
|
|
2793
2792
|
status: "success";
|
|
2794
2793
|
action_attempt_id: string;
|
|
2794
|
+
error: null;
|
|
2795
2795
|
result: {};
|
|
2796
2796
|
action_type: "DELETE_ACCESS_CODE";
|
|
2797
2797
|
} | {
|
|
2798
|
+
status: "error";
|
|
2799
|
+
action_attempt_id: string;
|
|
2798
2800
|
error: {
|
|
2799
|
-
type: string;
|
|
2800
2801
|
message: string;
|
|
2802
|
+
type: string;
|
|
2801
2803
|
};
|
|
2802
|
-
status: "error";
|
|
2803
|
-
action_attempt_id: string;
|
|
2804
2804
|
result: null;
|
|
2805
2805
|
action_type: "DELETE_ACCESS_CODE";
|
|
2806
2806
|
} | {
|
|
2807
|
-
error: null;
|
|
2808
2807
|
status: "pending";
|
|
2809
2808
|
action_attempt_id: string;
|
|
2809
|
+
error: null;
|
|
2810
2810
|
result: null;
|
|
2811
2811
|
action_type: "UPDATE_ACCESS_CODE";
|
|
2812
2812
|
} | {
|
|
2813
|
-
error: null;
|
|
2814
2813
|
status: "success";
|
|
2815
2814
|
action_attempt_id: string;
|
|
2815
|
+
error: null;
|
|
2816
2816
|
result: {
|
|
2817
2817
|
access_code?: any;
|
|
2818
2818
|
};
|
|
2819
2819
|
action_type: "UPDATE_ACCESS_CODE";
|
|
2820
2820
|
} | {
|
|
2821
|
+
status: "error";
|
|
2822
|
+
action_attempt_id: string;
|
|
2821
2823
|
error: {
|
|
2822
|
-
type: string;
|
|
2823
2824
|
message: string;
|
|
2825
|
+
type: string;
|
|
2824
2826
|
};
|
|
2825
|
-
status: "error";
|
|
2826
|
-
action_attempt_id: string;
|
|
2827
2827
|
result: null;
|
|
2828
2828
|
action_type: "UPDATE_ACCESS_CODE";
|
|
2829
2829
|
} | {
|
|
2830
|
-
error: null;
|
|
2831
2830
|
status: "pending";
|
|
2832
2831
|
action_attempt_id: string;
|
|
2832
|
+
error: null;
|
|
2833
2833
|
result: null;
|
|
2834
2834
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
2835
2835
|
} | {
|
|
2836
|
-
error: null;
|
|
2837
2836
|
status: "success";
|
|
2838
2837
|
action_attempt_id: string;
|
|
2838
|
+
error: null;
|
|
2839
2839
|
result: {
|
|
2840
2840
|
noise_threshold?: any;
|
|
2841
2841
|
};
|
|
2842
2842
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
2843
2843
|
} | {
|
|
2844
|
+
status: "error";
|
|
2845
|
+
action_attempt_id: string;
|
|
2844
2846
|
error: {
|
|
2845
|
-
type: string;
|
|
2846
2847
|
message: string;
|
|
2848
|
+
type: string;
|
|
2847
2849
|
};
|
|
2848
|
-
status: "error";
|
|
2849
|
-
action_attempt_id: string;
|
|
2850
2850
|
result: null;
|
|
2851
2851
|
action_type: "CREATE_NOISE_THRESHOLD";
|
|
2852
2852
|
} | {
|
|
2853
|
-
error: null;
|
|
2854
2853
|
status: "pending";
|
|
2855
2854
|
action_attempt_id: string;
|
|
2855
|
+
error: null;
|
|
2856
2856
|
result: null;
|
|
2857
2857
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
2858
2858
|
} | {
|
|
2859
|
-
error: null;
|
|
2860
2859
|
status: "success";
|
|
2861
2860
|
action_attempt_id: string;
|
|
2861
|
+
error: null;
|
|
2862
2862
|
result: {};
|
|
2863
2863
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
2864
2864
|
} | {
|
|
2865
|
+
status: "error";
|
|
2866
|
+
action_attempt_id: string;
|
|
2865
2867
|
error: {
|
|
2866
|
-
type: string;
|
|
2867
2868
|
message: string;
|
|
2869
|
+
type: string;
|
|
2868
2870
|
};
|
|
2869
|
-
status: "error";
|
|
2870
|
-
action_attempt_id: string;
|
|
2871
2871
|
result: null;
|
|
2872
2872
|
action_type: "DELETE_NOISE_THRESHOLD";
|
|
2873
2873
|
} | {
|
|
2874
|
-
error: null;
|
|
2875
2874
|
status: "pending";
|
|
2876
2875
|
action_attempt_id: string;
|
|
2876
|
+
error: null;
|
|
2877
2877
|
result: null;
|
|
2878
2878
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
2879
2879
|
} | {
|
|
2880
|
-
error: null;
|
|
2881
2880
|
status: "success";
|
|
2882
2881
|
action_attempt_id: string;
|
|
2882
|
+
error: null;
|
|
2883
2883
|
result: {
|
|
2884
2884
|
noise_threshold?: any;
|
|
2885
2885
|
};
|
|
2886
2886
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
2887
2887
|
} | {
|
|
2888
|
+
status: "error";
|
|
2889
|
+
action_attempt_id: string;
|
|
2888
2890
|
error: {
|
|
2889
|
-
type: string;
|
|
2890
2891
|
message: string;
|
|
2892
|
+
type: string;
|
|
2891
2893
|
};
|
|
2892
|
-
status: "error";
|
|
2893
|
-
action_attempt_id: string;
|
|
2894
2894
|
result: null;
|
|
2895
2895
|
action_type: "UPDATE_NOISE_THRESHOLD";
|
|
2896
2896
|
}>(error: unknown) => error is SeamActionAttemptTimeoutError<T>;
|