@seamapi/types 1.879.0 → 1.881.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 +621 -110
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +7363 -252
- package/dist/index.cjs +621 -110
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +544 -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/assign-credential.d.ts +547 -0
- package/lib/seam/connect/models/action-attempts/assign-credential.js +38 -0
- package/lib/seam/connect/models/action-attempts/assign-credential.js.map +1 -0
- package/lib/seam/connect/openapi.js +492 -10
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +7015 -448
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/assign-credential.ts +60 -0
- package/src/lib/seam/connect/openapi.ts +557 -12
- package/src/lib/seam/connect/route-types.ts +7437 -164
|
@@ -3400,6 +3400,550 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
3400
3400
|
status: z.ZodLiteral<"pending">;
|
|
3401
3401
|
result: z.ZodNull;
|
|
3402
3402
|
error: z.ZodNull;
|
|
3403
|
+
} & {
|
|
3404
|
+
action_type: z.ZodLiteral<"ASSIGN_CREDENTIAL">;
|
|
3405
|
+
}, "strip", z.ZodTypeAny, {
|
|
3406
|
+
status: "pending";
|
|
3407
|
+
action_attempt_id: string;
|
|
3408
|
+
error: null;
|
|
3409
|
+
result: null;
|
|
3410
|
+
action_type: "ASSIGN_CREDENTIAL";
|
|
3411
|
+
}, {
|
|
3412
|
+
status: "pending";
|
|
3413
|
+
action_attempt_id: string;
|
|
3414
|
+
error: null;
|
|
3415
|
+
result: null;
|
|
3416
|
+
action_type: "ASSIGN_CREDENTIAL";
|
|
3417
|
+
}>, z.ZodObject<{
|
|
3418
|
+
action_attempt_id: z.ZodString;
|
|
3419
|
+
} & {
|
|
3420
|
+
status: z.ZodLiteral<"success">;
|
|
3421
|
+
error: z.ZodNull;
|
|
3422
|
+
} & {
|
|
3423
|
+
action_type: z.ZodLiteral<"ASSIGN_CREDENTIAL">;
|
|
3424
|
+
result: z.ZodObject<{
|
|
3425
|
+
workspace_id: z.ZodString;
|
|
3426
|
+
access_method_id: z.ZodString;
|
|
3427
|
+
display_name: z.ZodString;
|
|
3428
|
+
mode: z.ZodEnum<["code", "card", "mobile_key", "cloud_key"]>;
|
|
3429
|
+
created_at: z.ZodString;
|
|
3430
|
+
issued_at: z.ZodNullable<z.ZodString>;
|
|
3431
|
+
is_issued: z.ZodBoolean;
|
|
3432
|
+
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
3433
|
+
client_session_token: z.ZodOptional<z.ZodString>;
|
|
3434
|
+
is_encoding_required: z.ZodOptional<z.ZodBoolean>;
|
|
3435
|
+
is_ready_for_encoding: z.ZodOptional<z.ZodBoolean>;
|
|
3436
|
+
is_assignment_required: z.ZodOptional<z.ZodBoolean>;
|
|
3437
|
+
is_ready_for_assignment: z.ZodOptional<z.ZodBoolean>;
|
|
3438
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3439
|
+
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
3440
|
+
created_at: z.ZodString;
|
|
3441
|
+
message: z.ZodString;
|
|
3442
|
+
} & {
|
|
3443
|
+
warning_code: z.ZodLiteral<"being_deleted">;
|
|
3444
|
+
}, "strip", z.ZodTypeAny, {
|
|
3445
|
+
message: string;
|
|
3446
|
+
created_at: string;
|
|
3447
|
+
warning_code: "being_deleted";
|
|
3448
|
+
}, {
|
|
3449
|
+
message: string;
|
|
3450
|
+
created_at: string;
|
|
3451
|
+
warning_code: "being_deleted";
|
|
3452
|
+
}>, z.ZodObject<{
|
|
3453
|
+
created_at: z.ZodString;
|
|
3454
|
+
message: z.ZodString;
|
|
3455
|
+
} & {
|
|
3456
|
+
warning_code: z.ZodLiteral<"updating_access_times">;
|
|
3457
|
+
}, "strip", z.ZodTypeAny, {
|
|
3458
|
+
message: string;
|
|
3459
|
+
created_at: string;
|
|
3460
|
+
warning_code: "updating_access_times";
|
|
3461
|
+
}, {
|
|
3462
|
+
message: string;
|
|
3463
|
+
created_at: string;
|
|
3464
|
+
warning_code: "updating_access_times";
|
|
3465
|
+
}>, z.ZodObject<{
|
|
3466
|
+
created_at: z.ZodString;
|
|
3467
|
+
message: z.ZodString;
|
|
3468
|
+
} & {
|
|
3469
|
+
warning_code: z.ZodLiteral<"pulled_backup_access_code">;
|
|
3470
|
+
original_access_method_id: z.ZodOptional<z.ZodString>;
|
|
3471
|
+
}, "strip", z.ZodTypeAny, {
|
|
3472
|
+
message: string;
|
|
3473
|
+
created_at: string;
|
|
3474
|
+
warning_code: "pulled_backup_access_code";
|
|
3475
|
+
original_access_method_id?: string | undefined;
|
|
3476
|
+
}, {
|
|
3477
|
+
message: string;
|
|
3478
|
+
created_at: string;
|
|
3479
|
+
warning_code: "pulled_backup_access_code";
|
|
3480
|
+
original_access_method_id?: string | undefined;
|
|
3481
|
+
}>]>, "many">;
|
|
3482
|
+
pending_mutations: z.ZodArray<z.ZodDiscriminatedUnion<"mutation_code", [z.ZodObject<{
|
|
3483
|
+
created_at: z.ZodString;
|
|
3484
|
+
message: z.ZodString;
|
|
3485
|
+
} & {
|
|
3486
|
+
mutation_code: z.ZodLiteral<"provisioning_access">;
|
|
3487
|
+
from: z.ZodObject<{
|
|
3488
|
+
device_ids: z.ZodArray<z.ZodString, "many">;
|
|
3489
|
+
}, "strip", z.ZodTypeAny, {
|
|
3490
|
+
device_ids: string[];
|
|
3491
|
+
}, {
|
|
3492
|
+
device_ids: string[];
|
|
3493
|
+
}>;
|
|
3494
|
+
to: z.ZodObject<{
|
|
3495
|
+
device_ids: z.ZodArray<z.ZodString, "many">;
|
|
3496
|
+
}, "strip", z.ZodTypeAny, {
|
|
3497
|
+
device_ids: string[];
|
|
3498
|
+
}, {
|
|
3499
|
+
device_ids: string[];
|
|
3500
|
+
}>;
|
|
3501
|
+
}, "strip", z.ZodTypeAny, {
|
|
3502
|
+
message: string;
|
|
3503
|
+
created_at: string;
|
|
3504
|
+
mutation_code: "provisioning_access";
|
|
3505
|
+
from: {
|
|
3506
|
+
device_ids: string[];
|
|
3507
|
+
};
|
|
3508
|
+
to: {
|
|
3509
|
+
device_ids: string[];
|
|
3510
|
+
};
|
|
3511
|
+
}, {
|
|
3512
|
+
message: string;
|
|
3513
|
+
created_at: string;
|
|
3514
|
+
mutation_code: "provisioning_access";
|
|
3515
|
+
from: {
|
|
3516
|
+
device_ids: string[];
|
|
3517
|
+
};
|
|
3518
|
+
to: {
|
|
3519
|
+
device_ids: string[];
|
|
3520
|
+
};
|
|
3521
|
+
}>, z.ZodObject<{
|
|
3522
|
+
created_at: z.ZodString;
|
|
3523
|
+
message: z.ZodString;
|
|
3524
|
+
} & {
|
|
3525
|
+
mutation_code: z.ZodLiteral<"revoking_access">;
|
|
3526
|
+
from: z.ZodObject<{
|
|
3527
|
+
device_ids: z.ZodArray<z.ZodString, "many">;
|
|
3528
|
+
}, "strip", z.ZodTypeAny, {
|
|
3529
|
+
device_ids: string[];
|
|
3530
|
+
}, {
|
|
3531
|
+
device_ids: string[];
|
|
3532
|
+
}>;
|
|
3533
|
+
to: z.ZodObject<{
|
|
3534
|
+
device_ids: z.ZodArray<z.ZodString, "many">;
|
|
3535
|
+
}, "strip", z.ZodTypeAny, {
|
|
3536
|
+
device_ids: string[];
|
|
3537
|
+
}, {
|
|
3538
|
+
device_ids: string[];
|
|
3539
|
+
}>;
|
|
3540
|
+
}, "strip", z.ZodTypeAny, {
|
|
3541
|
+
message: string;
|
|
3542
|
+
created_at: string;
|
|
3543
|
+
mutation_code: "revoking_access";
|
|
3544
|
+
from: {
|
|
3545
|
+
device_ids: string[];
|
|
3546
|
+
};
|
|
3547
|
+
to: {
|
|
3548
|
+
device_ids: string[];
|
|
3549
|
+
};
|
|
3550
|
+
}, {
|
|
3551
|
+
message: string;
|
|
3552
|
+
created_at: string;
|
|
3553
|
+
mutation_code: "revoking_access";
|
|
3554
|
+
from: {
|
|
3555
|
+
device_ids: string[];
|
|
3556
|
+
};
|
|
3557
|
+
to: {
|
|
3558
|
+
device_ids: string[];
|
|
3559
|
+
};
|
|
3560
|
+
}>, z.ZodObject<{
|
|
3561
|
+
created_at: z.ZodString;
|
|
3562
|
+
message: z.ZodString;
|
|
3563
|
+
} & {
|
|
3564
|
+
mutation_code: z.ZodLiteral<"updating_access_times">;
|
|
3565
|
+
from: z.ZodObject<{
|
|
3566
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3567
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
3568
|
+
}, "strip", z.ZodTypeAny, {
|
|
3569
|
+
starts_at: string | null;
|
|
3570
|
+
ends_at: string | null;
|
|
3571
|
+
}, {
|
|
3572
|
+
starts_at: string | null;
|
|
3573
|
+
ends_at: string | null;
|
|
3574
|
+
}>;
|
|
3575
|
+
to: z.ZodObject<{
|
|
3576
|
+
starts_at: z.ZodNullable<z.ZodString>;
|
|
3577
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
3578
|
+
}, "strip", z.ZodTypeAny, {
|
|
3579
|
+
starts_at: string | null;
|
|
3580
|
+
ends_at: string | null;
|
|
3581
|
+
}, {
|
|
3582
|
+
starts_at: string | null;
|
|
3583
|
+
ends_at: string | null;
|
|
3584
|
+
}>;
|
|
3585
|
+
}, "strip", z.ZodTypeAny, {
|
|
3586
|
+
message: string;
|
|
3587
|
+
created_at: string;
|
|
3588
|
+
mutation_code: "updating_access_times";
|
|
3589
|
+
from: {
|
|
3590
|
+
starts_at: string | null;
|
|
3591
|
+
ends_at: string | null;
|
|
3592
|
+
};
|
|
3593
|
+
to: {
|
|
3594
|
+
starts_at: string | null;
|
|
3595
|
+
ends_at: string | null;
|
|
3596
|
+
};
|
|
3597
|
+
}, {
|
|
3598
|
+
message: string;
|
|
3599
|
+
created_at: string;
|
|
3600
|
+
mutation_code: "updating_access_times";
|
|
3601
|
+
from: {
|
|
3602
|
+
starts_at: string | null;
|
|
3603
|
+
ends_at: string | null;
|
|
3604
|
+
};
|
|
3605
|
+
to: {
|
|
3606
|
+
starts_at: string | null;
|
|
3607
|
+
ends_at: string | null;
|
|
3608
|
+
};
|
|
3609
|
+
}>]>, "many">;
|
|
3610
|
+
customization_profile_id: z.ZodOptional<z.ZodString>;
|
|
3611
|
+
}, "strip", z.ZodTypeAny, {
|
|
3612
|
+
display_name: string;
|
|
3613
|
+
workspace_id: string;
|
|
3614
|
+
created_at: string;
|
|
3615
|
+
warnings: ({
|
|
3616
|
+
message: string;
|
|
3617
|
+
created_at: string;
|
|
3618
|
+
warning_code: "being_deleted";
|
|
3619
|
+
} | {
|
|
3620
|
+
message: string;
|
|
3621
|
+
created_at: string;
|
|
3622
|
+
warning_code: "updating_access_times";
|
|
3623
|
+
} | {
|
|
3624
|
+
message: string;
|
|
3625
|
+
created_at: string;
|
|
3626
|
+
warning_code: "pulled_backup_access_code";
|
|
3627
|
+
original_access_method_id?: string | undefined;
|
|
3628
|
+
})[];
|
|
3629
|
+
pending_mutations: ({
|
|
3630
|
+
message: string;
|
|
3631
|
+
created_at: string;
|
|
3632
|
+
mutation_code: "provisioning_access";
|
|
3633
|
+
from: {
|
|
3634
|
+
device_ids: string[];
|
|
3635
|
+
};
|
|
3636
|
+
to: {
|
|
3637
|
+
device_ids: string[];
|
|
3638
|
+
};
|
|
3639
|
+
} | {
|
|
3640
|
+
message: string;
|
|
3641
|
+
created_at: string;
|
|
3642
|
+
mutation_code: "revoking_access";
|
|
3643
|
+
from: {
|
|
3644
|
+
device_ids: string[];
|
|
3645
|
+
};
|
|
3646
|
+
to: {
|
|
3647
|
+
device_ids: string[];
|
|
3648
|
+
};
|
|
3649
|
+
} | {
|
|
3650
|
+
message: string;
|
|
3651
|
+
created_at: string;
|
|
3652
|
+
mutation_code: "updating_access_times";
|
|
3653
|
+
from: {
|
|
3654
|
+
starts_at: string | null;
|
|
3655
|
+
ends_at: string | null;
|
|
3656
|
+
};
|
|
3657
|
+
to: {
|
|
3658
|
+
starts_at: string | null;
|
|
3659
|
+
ends_at: string | null;
|
|
3660
|
+
};
|
|
3661
|
+
})[];
|
|
3662
|
+
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
3663
|
+
access_method_id: string;
|
|
3664
|
+
issued_at: string | null;
|
|
3665
|
+
is_issued: boolean;
|
|
3666
|
+
code?: string | null | undefined;
|
|
3667
|
+
client_session_token?: string | undefined;
|
|
3668
|
+
instant_key_url?: string | undefined;
|
|
3669
|
+
customization_profile_id?: string | undefined;
|
|
3670
|
+
is_encoding_required?: boolean | undefined;
|
|
3671
|
+
is_ready_for_encoding?: boolean | undefined;
|
|
3672
|
+
is_assignment_required?: boolean | undefined;
|
|
3673
|
+
is_ready_for_assignment?: boolean | undefined;
|
|
3674
|
+
}, {
|
|
3675
|
+
display_name: string;
|
|
3676
|
+
workspace_id: string;
|
|
3677
|
+
created_at: string;
|
|
3678
|
+
warnings: ({
|
|
3679
|
+
message: string;
|
|
3680
|
+
created_at: string;
|
|
3681
|
+
warning_code: "being_deleted";
|
|
3682
|
+
} | {
|
|
3683
|
+
message: string;
|
|
3684
|
+
created_at: string;
|
|
3685
|
+
warning_code: "updating_access_times";
|
|
3686
|
+
} | {
|
|
3687
|
+
message: string;
|
|
3688
|
+
created_at: string;
|
|
3689
|
+
warning_code: "pulled_backup_access_code";
|
|
3690
|
+
original_access_method_id?: string | undefined;
|
|
3691
|
+
})[];
|
|
3692
|
+
pending_mutations: ({
|
|
3693
|
+
message: string;
|
|
3694
|
+
created_at: string;
|
|
3695
|
+
mutation_code: "provisioning_access";
|
|
3696
|
+
from: {
|
|
3697
|
+
device_ids: string[];
|
|
3698
|
+
};
|
|
3699
|
+
to: {
|
|
3700
|
+
device_ids: string[];
|
|
3701
|
+
};
|
|
3702
|
+
} | {
|
|
3703
|
+
message: string;
|
|
3704
|
+
created_at: string;
|
|
3705
|
+
mutation_code: "revoking_access";
|
|
3706
|
+
from: {
|
|
3707
|
+
device_ids: string[];
|
|
3708
|
+
};
|
|
3709
|
+
to: {
|
|
3710
|
+
device_ids: string[];
|
|
3711
|
+
};
|
|
3712
|
+
} | {
|
|
3713
|
+
message: string;
|
|
3714
|
+
created_at: string;
|
|
3715
|
+
mutation_code: "updating_access_times";
|
|
3716
|
+
from: {
|
|
3717
|
+
starts_at: string | null;
|
|
3718
|
+
ends_at: string | null;
|
|
3719
|
+
};
|
|
3720
|
+
to: {
|
|
3721
|
+
starts_at: string | null;
|
|
3722
|
+
ends_at: string | null;
|
|
3723
|
+
};
|
|
3724
|
+
})[];
|
|
3725
|
+
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
3726
|
+
access_method_id: string;
|
|
3727
|
+
issued_at: string | null;
|
|
3728
|
+
is_issued: boolean;
|
|
3729
|
+
code?: string | null | undefined;
|
|
3730
|
+
client_session_token?: string | undefined;
|
|
3731
|
+
instant_key_url?: string | undefined;
|
|
3732
|
+
customization_profile_id?: string | undefined;
|
|
3733
|
+
is_encoding_required?: boolean | undefined;
|
|
3734
|
+
is_ready_for_encoding?: boolean | undefined;
|
|
3735
|
+
is_assignment_required?: boolean | undefined;
|
|
3736
|
+
is_ready_for_assignment?: boolean | undefined;
|
|
3737
|
+
}>;
|
|
3738
|
+
}, "strip", z.ZodTypeAny, {
|
|
3739
|
+
status: "success";
|
|
3740
|
+
action_attempt_id: string;
|
|
3741
|
+
error: null;
|
|
3742
|
+
result: {
|
|
3743
|
+
display_name: string;
|
|
3744
|
+
workspace_id: string;
|
|
3745
|
+
created_at: string;
|
|
3746
|
+
warnings: ({
|
|
3747
|
+
message: string;
|
|
3748
|
+
created_at: string;
|
|
3749
|
+
warning_code: "being_deleted";
|
|
3750
|
+
} | {
|
|
3751
|
+
message: string;
|
|
3752
|
+
created_at: string;
|
|
3753
|
+
warning_code: "updating_access_times";
|
|
3754
|
+
} | {
|
|
3755
|
+
message: string;
|
|
3756
|
+
created_at: string;
|
|
3757
|
+
warning_code: "pulled_backup_access_code";
|
|
3758
|
+
original_access_method_id?: string | undefined;
|
|
3759
|
+
})[];
|
|
3760
|
+
pending_mutations: ({
|
|
3761
|
+
message: string;
|
|
3762
|
+
created_at: string;
|
|
3763
|
+
mutation_code: "provisioning_access";
|
|
3764
|
+
from: {
|
|
3765
|
+
device_ids: string[];
|
|
3766
|
+
};
|
|
3767
|
+
to: {
|
|
3768
|
+
device_ids: string[];
|
|
3769
|
+
};
|
|
3770
|
+
} | {
|
|
3771
|
+
message: string;
|
|
3772
|
+
created_at: string;
|
|
3773
|
+
mutation_code: "revoking_access";
|
|
3774
|
+
from: {
|
|
3775
|
+
device_ids: string[];
|
|
3776
|
+
};
|
|
3777
|
+
to: {
|
|
3778
|
+
device_ids: string[];
|
|
3779
|
+
};
|
|
3780
|
+
} | {
|
|
3781
|
+
message: string;
|
|
3782
|
+
created_at: string;
|
|
3783
|
+
mutation_code: "updating_access_times";
|
|
3784
|
+
from: {
|
|
3785
|
+
starts_at: string | null;
|
|
3786
|
+
ends_at: string | null;
|
|
3787
|
+
};
|
|
3788
|
+
to: {
|
|
3789
|
+
starts_at: string | null;
|
|
3790
|
+
ends_at: string | null;
|
|
3791
|
+
};
|
|
3792
|
+
})[];
|
|
3793
|
+
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
3794
|
+
access_method_id: string;
|
|
3795
|
+
issued_at: string | null;
|
|
3796
|
+
is_issued: boolean;
|
|
3797
|
+
code?: string | null | undefined;
|
|
3798
|
+
client_session_token?: string | undefined;
|
|
3799
|
+
instant_key_url?: string | undefined;
|
|
3800
|
+
customization_profile_id?: string | undefined;
|
|
3801
|
+
is_encoding_required?: boolean | undefined;
|
|
3802
|
+
is_ready_for_encoding?: boolean | undefined;
|
|
3803
|
+
is_assignment_required?: boolean | undefined;
|
|
3804
|
+
is_ready_for_assignment?: boolean | undefined;
|
|
3805
|
+
};
|
|
3806
|
+
action_type: "ASSIGN_CREDENTIAL";
|
|
3807
|
+
}, {
|
|
3808
|
+
status: "success";
|
|
3809
|
+
action_attempt_id: string;
|
|
3810
|
+
error: null;
|
|
3811
|
+
result: {
|
|
3812
|
+
display_name: string;
|
|
3813
|
+
workspace_id: string;
|
|
3814
|
+
created_at: string;
|
|
3815
|
+
warnings: ({
|
|
3816
|
+
message: string;
|
|
3817
|
+
created_at: string;
|
|
3818
|
+
warning_code: "being_deleted";
|
|
3819
|
+
} | {
|
|
3820
|
+
message: string;
|
|
3821
|
+
created_at: string;
|
|
3822
|
+
warning_code: "updating_access_times";
|
|
3823
|
+
} | {
|
|
3824
|
+
message: string;
|
|
3825
|
+
created_at: string;
|
|
3826
|
+
warning_code: "pulled_backup_access_code";
|
|
3827
|
+
original_access_method_id?: string | undefined;
|
|
3828
|
+
})[];
|
|
3829
|
+
pending_mutations: ({
|
|
3830
|
+
message: string;
|
|
3831
|
+
created_at: string;
|
|
3832
|
+
mutation_code: "provisioning_access";
|
|
3833
|
+
from: {
|
|
3834
|
+
device_ids: string[];
|
|
3835
|
+
};
|
|
3836
|
+
to: {
|
|
3837
|
+
device_ids: string[];
|
|
3838
|
+
};
|
|
3839
|
+
} | {
|
|
3840
|
+
message: string;
|
|
3841
|
+
created_at: string;
|
|
3842
|
+
mutation_code: "revoking_access";
|
|
3843
|
+
from: {
|
|
3844
|
+
device_ids: string[];
|
|
3845
|
+
};
|
|
3846
|
+
to: {
|
|
3847
|
+
device_ids: string[];
|
|
3848
|
+
};
|
|
3849
|
+
} | {
|
|
3850
|
+
message: string;
|
|
3851
|
+
created_at: string;
|
|
3852
|
+
mutation_code: "updating_access_times";
|
|
3853
|
+
from: {
|
|
3854
|
+
starts_at: string | null;
|
|
3855
|
+
ends_at: string | null;
|
|
3856
|
+
};
|
|
3857
|
+
to: {
|
|
3858
|
+
starts_at: string | null;
|
|
3859
|
+
ends_at: string | null;
|
|
3860
|
+
};
|
|
3861
|
+
})[];
|
|
3862
|
+
mode: "code" | "card" | "mobile_key" | "cloud_key";
|
|
3863
|
+
access_method_id: string;
|
|
3864
|
+
issued_at: string | null;
|
|
3865
|
+
is_issued: boolean;
|
|
3866
|
+
code?: string | null | undefined;
|
|
3867
|
+
client_session_token?: string | undefined;
|
|
3868
|
+
instant_key_url?: string | undefined;
|
|
3869
|
+
customization_profile_id?: string | undefined;
|
|
3870
|
+
is_encoding_required?: boolean | undefined;
|
|
3871
|
+
is_ready_for_encoding?: boolean | undefined;
|
|
3872
|
+
is_assignment_required?: boolean | undefined;
|
|
3873
|
+
is_ready_for_assignment?: boolean | undefined;
|
|
3874
|
+
};
|
|
3875
|
+
action_type: "ASSIGN_CREDENTIAL";
|
|
3876
|
+
}>, z.ZodObject<{
|
|
3877
|
+
action_attempt_id: z.ZodString;
|
|
3878
|
+
} & {
|
|
3879
|
+
status: z.ZodLiteral<"error">;
|
|
3880
|
+
result: z.ZodNull;
|
|
3881
|
+
} & {
|
|
3882
|
+
action_type: z.ZodLiteral<"ASSIGN_CREDENTIAL">;
|
|
3883
|
+
error: z.ZodUnion<[z.ZodObject<{
|
|
3884
|
+
type: z.ZodLiteral<"uncategorized_error">;
|
|
3885
|
+
message: z.ZodString;
|
|
3886
|
+
}, "strip", z.ZodTypeAny, {
|
|
3887
|
+
message: string;
|
|
3888
|
+
type: "uncategorized_error";
|
|
3889
|
+
}, {
|
|
3890
|
+
message: string;
|
|
3891
|
+
type: "uncategorized_error";
|
|
3892
|
+
}>, z.ZodObject<{
|
|
3893
|
+
type: z.ZodLiteral<"action_attempt_expired">;
|
|
3894
|
+
message: z.ZodString;
|
|
3895
|
+
}, "strip", z.ZodTypeAny, {
|
|
3896
|
+
message: string;
|
|
3897
|
+
type: "action_attempt_expired";
|
|
3898
|
+
}, {
|
|
3899
|
+
message: string;
|
|
3900
|
+
type: "action_attempt_expired";
|
|
3901
|
+
}>, z.ZodObject<{
|
|
3902
|
+
type: z.ZodLiteral<"credential_not_found">;
|
|
3903
|
+
message: z.ZodString;
|
|
3904
|
+
}, "strip", z.ZodTypeAny, {
|
|
3905
|
+
message: string;
|
|
3906
|
+
type: "credential_not_found";
|
|
3907
|
+
}, {
|
|
3908
|
+
message: string;
|
|
3909
|
+
type: "credential_not_found";
|
|
3910
|
+
}>]>;
|
|
3911
|
+
}, "strip", z.ZodTypeAny, {
|
|
3912
|
+
status: "error";
|
|
3913
|
+
action_attempt_id: string;
|
|
3914
|
+
error: {
|
|
3915
|
+
message: string;
|
|
3916
|
+
type: "uncategorized_error";
|
|
3917
|
+
} | {
|
|
3918
|
+
message: string;
|
|
3919
|
+
type: "action_attempt_expired";
|
|
3920
|
+
} | {
|
|
3921
|
+
message: string;
|
|
3922
|
+
type: "credential_not_found";
|
|
3923
|
+
};
|
|
3924
|
+
result: null;
|
|
3925
|
+
action_type: "ASSIGN_CREDENTIAL";
|
|
3926
|
+
}, {
|
|
3927
|
+
status: "error";
|
|
3928
|
+
action_attempt_id: string;
|
|
3929
|
+
error: {
|
|
3930
|
+
message: string;
|
|
3931
|
+
type: "uncategorized_error";
|
|
3932
|
+
} | {
|
|
3933
|
+
message: string;
|
|
3934
|
+
type: "action_attempt_expired";
|
|
3935
|
+
} | {
|
|
3936
|
+
message: string;
|
|
3937
|
+
type: "credential_not_found";
|
|
3938
|
+
};
|
|
3939
|
+
result: null;
|
|
3940
|
+
action_type: "ASSIGN_CREDENTIAL";
|
|
3941
|
+
}>, z.ZodObject<{
|
|
3942
|
+
action_attempt_id: z.ZodString;
|
|
3943
|
+
} & {
|
|
3944
|
+
status: z.ZodLiteral<"pending">;
|
|
3945
|
+
result: z.ZodNull;
|
|
3946
|
+
error: z.ZodNull;
|
|
3403
3947
|
} & {
|
|
3404
3948
|
action_type: z.ZodLiteral<"RESET_SANDBOX_WORKSPACE">;
|
|
3405
3949
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { activate_climate_preset_action_attempt } from './activate-climate-preset.js';
|
|
3
|
+
import { assign_credential_action_attempt } from './assign-credential.js';
|
|
3
4
|
import { configure_auto_lock_action_attempt } from './configure-auto-lock.js';
|
|
4
5
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
5
6
|
import { encode_credential_action_attempt } from './encode-credential.js';
|
|
@@ -19,6 +20,7 @@ export const action_attempt = z.union([
|
|
|
19
20
|
...scan_credential_action_attempt.options,
|
|
20
21
|
...encode_credential_action_attempt.options,
|
|
21
22
|
...scan_to_assign_credential_action_attempt.options,
|
|
23
|
+
...assign_credential_action_attempt.options,
|
|
22
24
|
...reset_sandbox_workspace_action_attempt.options,
|
|
23
25
|
...set_fan_mode_action_attempt.options,
|
|
24
26
|
...set_hvac_mode_action_attempt.options,
|
|
@@ -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,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,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,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,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,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,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,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|