@seamapi/types 1.246.0 → 1.247.1
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 +309 -100
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +244 -44
- package/lib/seam/connect/models/acs/acs-user.js +72 -20
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +95 -14
- package/lib/seam/connect/openapi.js +261 -78
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +149 -30
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-user.ts +90 -20
- package/src/lib/seam/connect/openapi.ts +301 -78
- package/src/lib/seam/connect/route-types.ts +149 -30
|
@@ -2318,25 +2318,41 @@ export interface Routes {
|
|
|
2318
2318
|
formData: {};
|
|
2319
2319
|
jsonResponse: {
|
|
2320
2320
|
acs_users: Array<{
|
|
2321
|
+
/** ID of the `acs_user`. */
|
|
2321
2322
|
acs_user_id: string;
|
|
2323
|
+
/** ID of the access control system that contains the `acs_user`. */
|
|
2322
2324
|
acs_system_id: string;
|
|
2323
2325
|
hid_acs_system_id?: string | undefined;
|
|
2326
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`. */
|
|
2324
2327
|
workspace_id: string;
|
|
2328
|
+
/** Date and time at which the `acs_user` was created. */
|
|
2325
2329
|
created_at: string;
|
|
2330
|
+
/** Display name for the `acs_user`. */
|
|
2326
2331
|
display_name: string;
|
|
2332
|
+
/** Brand-specific terminology for the `acs_user` type. */
|
|
2327
2333
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user') | undefined;
|
|
2334
|
+
/** Display name that corresponds to the brand-specific terminology for the `acs_user` type. */
|
|
2328
2335
|
external_type_display_name?: string | undefined;
|
|
2336
|
+
/** Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users). */
|
|
2329
2337
|
is_suspended: boolean;
|
|
2338
|
+
/** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. */
|
|
2330
2339
|
access_schedule?: {
|
|
2331
2340
|
starts_at: string;
|
|
2332
2341
|
ends_at: string;
|
|
2333
2342
|
} | undefined;
|
|
2343
|
+
/** ID of the user identity associated with the `acs_user`. */
|
|
2334
2344
|
user_identity_id?: string | undefined;
|
|
2345
|
+
/** Full name of the user identity associated with the `acs_user`. */
|
|
2335
2346
|
user_identity_full_name?: (string | null) | undefined;
|
|
2347
|
+
/** Email address of the user identity associated with the `acs_user`. */
|
|
2336
2348
|
user_identity_email_address?: (string | null) | undefined;
|
|
2349
|
+
/** Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
2337
2350
|
user_identity_phone_number?: (string | null) | undefined;
|
|
2351
|
+
/** */
|
|
2338
2352
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
2353
|
+
/** */
|
|
2339
2354
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
2355
|
+
/** Warnings associated with the `acs_user`. */
|
|
2340
2356
|
warnings: Array<{
|
|
2341
2357
|
created_at: string;
|
|
2342
2358
|
message: string;
|
|
@@ -2346,6 +2362,7 @@ export interface Routes {
|
|
|
2346
2362
|
message: string;
|
|
2347
2363
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
2348
2364
|
}>;
|
|
2365
|
+
/** Errors associated with the `acs_user`. */
|
|
2349
2366
|
errors: Array<{
|
|
2350
2367
|
/** Date and time at which Seam created the error. */
|
|
2351
2368
|
created_at: string;
|
|
@@ -2377,11 +2394,14 @@ export interface Routes {
|
|
|
2377
2394
|
message: string;
|
|
2378
2395
|
error_code: 'failed_to_delete_on_acs_system';
|
|
2379
2396
|
}>;
|
|
2397
|
+
/** Full name of the `acs_user`. */
|
|
2380
2398
|
full_name?: string | undefined;
|
|
2381
2399
|
/**
|
|
2382
2400
|
* @deprecated use email_address. */
|
|
2383
2401
|
email?: string | undefined;
|
|
2402
|
+
/** Email address of the `acs_user`. */
|
|
2384
2403
|
email_address?: string | undefined;
|
|
2404
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
2385
2405
|
phone_number?: string | undefined;
|
|
2386
2406
|
is_managed: true;
|
|
2387
2407
|
}>;
|
|
@@ -3449,36 +3469,55 @@ export interface Routes {
|
|
|
3449
3469
|
starts_at: string;
|
|
3450
3470
|
ends_at: string;
|
|
3451
3471
|
} | undefined;
|
|
3472
|
+
/** Full name of the `acs_user`. */
|
|
3452
3473
|
full_name?: string | undefined;
|
|
3453
3474
|
/**
|
|
3454
3475
|
* @deprecated use email_address. */
|
|
3455
3476
|
email?: string | undefined;
|
|
3477
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3456
3478
|
phone_number?: string | undefined;
|
|
3479
|
+
/** Email address of the `acs_user`. */
|
|
3457
3480
|
email_address?: string | undefined;
|
|
3458
3481
|
};
|
|
3459
3482
|
commonParams: {};
|
|
3460
3483
|
formData: {};
|
|
3461
3484
|
jsonResponse: {
|
|
3462
3485
|
acs_user: {
|
|
3486
|
+
/** ID of the `acs_user`. */
|
|
3463
3487
|
acs_user_id: string;
|
|
3488
|
+
/** ID of the access control system that contains the `acs_user`. */
|
|
3464
3489
|
acs_system_id: string;
|
|
3465
3490
|
hid_acs_system_id?: string | undefined;
|
|
3491
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`. */
|
|
3466
3492
|
workspace_id: string;
|
|
3493
|
+
/** Date and time at which the `acs_user` was created. */
|
|
3467
3494
|
created_at: string;
|
|
3495
|
+
/** Display name for the `acs_user`. */
|
|
3468
3496
|
display_name: string;
|
|
3497
|
+
/** Brand-specific terminology for the `acs_user` type. */
|
|
3469
3498
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user') | undefined;
|
|
3499
|
+
/** Display name that corresponds to the brand-specific terminology for the `acs_user` type. */
|
|
3470
3500
|
external_type_display_name?: string | undefined;
|
|
3501
|
+
/** Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users). */
|
|
3471
3502
|
is_suspended: boolean;
|
|
3503
|
+
/** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. */
|
|
3472
3504
|
access_schedule?: {
|
|
3473
3505
|
starts_at: string;
|
|
3474
3506
|
ends_at: string;
|
|
3475
3507
|
} | undefined;
|
|
3508
|
+
/** ID of the user identity associated with the `acs_user`. */
|
|
3476
3509
|
user_identity_id?: string | undefined;
|
|
3510
|
+
/** Full name of the user identity associated with the `acs_user`. */
|
|
3477
3511
|
user_identity_full_name?: (string | null) | undefined;
|
|
3512
|
+
/** Email address of the user identity associated with the `acs_user`. */
|
|
3478
3513
|
user_identity_email_address?: (string | null) | undefined;
|
|
3514
|
+
/** Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3479
3515
|
user_identity_phone_number?: (string | null) | undefined;
|
|
3516
|
+
/** */
|
|
3480
3517
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
3518
|
+
/** */
|
|
3481
3519
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
3520
|
+
/** Warnings associated with the `acs_user`. */
|
|
3482
3521
|
warnings: Array<{
|
|
3483
3522
|
created_at: string;
|
|
3484
3523
|
message: string;
|
|
@@ -3488,6 +3527,7 @@ export interface Routes {
|
|
|
3488
3527
|
message: string;
|
|
3489
3528
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3490
3529
|
}>;
|
|
3530
|
+
/** Errors associated with the `acs_user`. */
|
|
3491
3531
|
errors: Array<{
|
|
3492
3532
|
/** Date and time at which Seam created the error. */
|
|
3493
3533
|
created_at: string;
|
|
@@ -3519,11 +3559,14 @@ export interface Routes {
|
|
|
3519
3559
|
message: string;
|
|
3520
3560
|
error_code: 'failed_to_delete_on_acs_system';
|
|
3521
3561
|
}>;
|
|
3562
|
+
/** Full name of the `acs_user`. */
|
|
3522
3563
|
full_name?: string | undefined;
|
|
3523
3564
|
/**
|
|
3524
3565
|
* @deprecated use email_address. */
|
|
3525
3566
|
email?: string | undefined;
|
|
3567
|
+
/** Email address of the `acs_user`. */
|
|
3526
3568
|
email_address?: string | undefined;
|
|
3569
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3527
3570
|
phone_number?: string | undefined;
|
|
3528
3571
|
is_managed: true;
|
|
3529
3572
|
};
|
|
@@ -3553,25 +3596,41 @@ export interface Routes {
|
|
|
3553
3596
|
formData: {};
|
|
3554
3597
|
jsonResponse: {
|
|
3555
3598
|
acs_user: {
|
|
3599
|
+
/** ID of the `acs_user`. */
|
|
3556
3600
|
acs_user_id: string;
|
|
3601
|
+
/** ID of the access control system that contains the `acs_user`. */
|
|
3557
3602
|
acs_system_id: string;
|
|
3558
3603
|
hid_acs_system_id?: string | undefined;
|
|
3604
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`. */
|
|
3559
3605
|
workspace_id: string;
|
|
3606
|
+
/** Date and time at which the `acs_user` was created. */
|
|
3560
3607
|
created_at: string;
|
|
3608
|
+
/** Display name for the `acs_user`. */
|
|
3561
3609
|
display_name: string;
|
|
3610
|
+
/** Brand-specific terminology for the `acs_user` type. */
|
|
3562
3611
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user') | undefined;
|
|
3612
|
+
/** Display name that corresponds to the brand-specific terminology for the `acs_user` type. */
|
|
3563
3613
|
external_type_display_name?: string | undefined;
|
|
3614
|
+
/** Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users). */
|
|
3564
3615
|
is_suspended: boolean;
|
|
3616
|
+
/** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. */
|
|
3565
3617
|
access_schedule?: {
|
|
3566
3618
|
starts_at: string;
|
|
3567
3619
|
ends_at: string;
|
|
3568
3620
|
} | undefined;
|
|
3621
|
+
/** ID of the user identity associated with the `acs_user`. */
|
|
3569
3622
|
user_identity_id?: string | undefined;
|
|
3623
|
+
/** Full name of the user identity associated with the `acs_user`. */
|
|
3570
3624
|
user_identity_full_name?: (string | null) | undefined;
|
|
3625
|
+
/** Email address of the user identity associated with the `acs_user`. */
|
|
3571
3626
|
user_identity_email_address?: (string | null) | undefined;
|
|
3627
|
+
/** Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3572
3628
|
user_identity_phone_number?: (string | null) | undefined;
|
|
3629
|
+
/** */
|
|
3573
3630
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
3631
|
+
/** */
|
|
3574
3632
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
3633
|
+
/** Warnings associated with the `acs_user`. */
|
|
3575
3634
|
warnings: Array<{
|
|
3576
3635
|
created_at: string;
|
|
3577
3636
|
message: string;
|
|
@@ -3581,6 +3640,7 @@ export interface Routes {
|
|
|
3581
3640
|
message: string;
|
|
3582
3641
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3583
3642
|
}>;
|
|
3643
|
+
/** Errors associated with the `acs_user`. */
|
|
3584
3644
|
errors: Array<{
|
|
3585
3645
|
/** Date and time at which Seam created the error. */
|
|
3586
3646
|
created_at: string;
|
|
@@ -3612,11 +3672,14 @@ export interface Routes {
|
|
|
3612
3672
|
message: string;
|
|
3613
3673
|
error_code: 'failed_to_delete_on_acs_system';
|
|
3614
3674
|
}>;
|
|
3675
|
+
/** Full name of the `acs_user`. */
|
|
3615
3676
|
full_name?: string | undefined;
|
|
3616
3677
|
/**
|
|
3617
3678
|
* @deprecated use email_address. */
|
|
3618
3679
|
email?: string | undefined;
|
|
3680
|
+
/** Email address of the `acs_user`. */
|
|
3619
3681
|
email_address?: string | undefined;
|
|
3682
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3620
3683
|
phone_number?: string | undefined;
|
|
3621
3684
|
is_managed: true;
|
|
3622
3685
|
};
|
|
@@ -3642,25 +3705,41 @@ export interface Routes {
|
|
|
3642
3705
|
formData: {};
|
|
3643
3706
|
jsonResponse: {
|
|
3644
3707
|
acs_users: Array<{
|
|
3708
|
+
/** ID of the `acs_user`. */
|
|
3645
3709
|
acs_user_id: string;
|
|
3710
|
+
/** ID of the access control system that contains the `acs_user`. */
|
|
3646
3711
|
acs_system_id: string;
|
|
3647
3712
|
hid_acs_system_id?: string | undefined;
|
|
3713
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`. */
|
|
3648
3714
|
workspace_id: string;
|
|
3715
|
+
/** Date and time at which the `acs_user` was created. */
|
|
3649
3716
|
created_at: string;
|
|
3717
|
+
/** Display name for the `acs_user`. */
|
|
3650
3718
|
display_name: string;
|
|
3719
|
+
/** Brand-specific terminology for the `acs_user` type. */
|
|
3651
3720
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user') | undefined;
|
|
3721
|
+
/** Display name that corresponds to the brand-specific terminology for the `acs_user` type. */
|
|
3652
3722
|
external_type_display_name?: string | undefined;
|
|
3723
|
+
/** Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users). */
|
|
3653
3724
|
is_suspended: boolean;
|
|
3725
|
+
/** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. */
|
|
3654
3726
|
access_schedule?: {
|
|
3655
3727
|
starts_at: string;
|
|
3656
3728
|
ends_at: string;
|
|
3657
3729
|
} | undefined;
|
|
3730
|
+
/** ID of the user identity associated with the `acs_user`. */
|
|
3658
3731
|
user_identity_id?: string | undefined;
|
|
3732
|
+
/** Full name of the user identity associated with the `acs_user`. */
|
|
3659
3733
|
user_identity_full_name?: (string | null) | undefined;
|
|
3734
|
+
/** Email address of the user identity associated with the `acs_user`. */
|
|
3660
3735
|
user_identity_email_address?: (string | null) | undefined;
|
|
3736
|
+
/** Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3661
3737
|
user_identity_phone_number?: (string | null) | undefined;
|
|
3738
|
+
/** */
|
|
3662
3739
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
3740
|
+
/** */
|
|
3663
3741
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
3742
|
+
/** Warnings associated with the `acs_user`. */
|
|
3664
3743
|
warnings: Array<{
|
|
3665
3744
|
created_at: string;
|
|
3666
3745
|
message: string;
|
|
@@ -3670,6 +3749,7 @@ export interface Routes {
|
|
|
3670
3749
|
message: string;
|
|
3671
3750
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3672
3751
|
}>;
|
|
3752
|
+
/** Errors associated with the `acs_user`. */
|
|
3673
3753
|
errors: Array<{
|
|
3674
3754
|
/** Date and time at which Seam created the error. */
|
|
3675
3755
|
created_at: string;
|
|
@@ -3701,11 +3781,14 @@ export interface Routes {
|
|
|
3701
3781
|
message: string;
|
|
3702
3782
|
error_code: 'failed_to_delete_on_acs_system';
|
|
3703
3783
|
}>;
|
|
3784
|
+
/** Full name of the `acs_user`. */
|
|
3704
3785
|
full_name?: string | undefined;
|
|
3705
3786
|
/**
|
|
3706
3787
|
* @deprecated use email_address. */
|
|
3707
3788
|
email?: string | undefined;
|
|
3789
|
+
/** Email address of the `acs_user`. */
|
|
3708
3790
|
email_address?: string | undefined;
|
|
3791
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3709
3792
|
phone_number?: string | undefined;
|
|
3710
3793
|
is_managed: true;
|
|
3711
3794
|
}>;
|
|
@@ -3797,25 +3880,41 @@ export interface Routes {
|
|
|
3797
3880
|
formData: {};
|
|
3798
3881
|
jsonResponse: {
|
|
3799
3882
|
acs_user: {
|
|
3883
|
+
/** ID of the `acs_user`. */
|
|
3800
3884
|
acs_user_id: string;
|
|
3885
|
+
/** ID of the access control system that contains the `acs_user`. */
|
|
3801
3886
|
acs_system_id: string;
|
|
3802
3887
|
hid_acs_system_id?: string | undefined;
|
|
3888
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`. */
|
|
3803
3889
|
workspace_id: string;
|
|
3890
|
+
/** Date and time at which the `acs_user` was created. */
|
|
3804
3891
|
created_at: string;
|
|
3892
|
+
/** Display name for the `acs_user`. */
|
|
3805
3893
|
display_name: string;
|
|
3894
|
+
/** Brand-specific terminology for the `acs_user` type. */
|
|
3806
3895
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user') | undefined;
|
|
3896
|
+
/** Display name that corresponds to the brand-specific terminology for the `acs_user` type. */
|
|
3807
3897
|
external_type_display_name?: string | undefined;
|
|
3898
|
+
/** Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users). */
|
|
3808
3899
|
is_suspended: boolean;
|
|
3900
|
+
/** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. */
|
|
3809
3901
|
access_schedule?: {
|
|
3810
3902
|
starts_at: string;
|
|
3811
3903
|
ends_at: string;
|
|
3812
3904
|
} | undefined;
|
|
3905
|
+
/** ID of the user identity associated with the `acs_user`. */
|
|
3813
3906
|
user_identity_id?: string | undefined;
|
|
3907
|
+
/** Full name of the user identity associated with the `acs_user`. */
|
|
3814
3908
|
user_identity_full_name?: (string | null) | undefined;
|
|
3909
|
+
/** Email address of the user identity associated with the `acs_user`. */
|
|
3815
3910
|
user_identity_email_address?: (string | null) | undefined;
|
|
3911
|
+
/** Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3816
3912
|
user_identity_phone_number?: (string | null) | undefined;
|
|
3913
|
+
/** */
|
|
3817
3914
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
3915
|
+
/** */
|
|
3818
3916
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
3917
|
+
/** Warnings associated with the `acs_user`. */
|
|
3819
3918
|
warnings: Array<{
|
|
3820
3919
|
created_at: string;
|
|
3821
3920
|
message: string;
|
|
@@ -3825,6 +3924,7 @@ export interface Routes {
|
|
|
3825
3924
|
message: string;
|
|
3826
3925
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3827
3926
|
}>;
|
|
3927
|
+
/** Errors associated with the `acs_user`. */
|
|
3828
3928
|
errors: Array<{
|
|
3829
3929
|
/** Date and time at which Seam created the error. */
|
|
3830
3930
|
created_at: string;
|
|
@@ -3856,11 +3956,14 @@ export interface Routes {
|
|
|
3856
3956
|
message: string;
|
|
3857
3957
|
error_code: 'failed_to_delete_on_acs_system';
|
|
3858
3958
|
}>;
|
|
3959
|
+
/** Full name of the `acs_user`. */
|
|
3859
3960
|
full_name?: string | undefined;
|
|
3860
3961
|
/**
|
|
3861
3962
|
* @deprecated use email_address. */
|
|
3862
3963
|
email?: string | undefined;
|
|
3964
|
+
/** Email address of the `acs_user`. */
|
|
3863
3965
|
email_address?: string | undefined;
|
|
3966
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3864
3967
|
phone_number?: string | undefined;
|
|
3865
3968
|
is_managed: false;
|
|
3866
3969
|
};
|
|
@@ -3881,25 +3984,41 @@ export interface Routes {
|
|
|
3881
3984
|
formData: {};
|
|
3882
3985
|
jsonResponse: {
|
|
3883
3986
|
acs_users: Array<{
|
|
3987
|
+
/** ID of the `acs_user`. */
|
|
3884
3988
|
acs_user_id: string;
|
|
3989
|
+
/** ID of the access control system that contains the `acs_user`. */
|
|
3885
3990
|
acs_system_id: string;
|
|
3886
3991
|
hid_acs_system_id?: string | undefined;
|
|
3992
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`. */
|
|
3887
3993
|
workspace_id: string;
|
|
3994
|
+
/** Date and time at which the `acs_user` was created. */
|
|
3888
3995
|
created_at: string;
|
|
3996
|
+
/** Display name for the `acs_user`. */
|
|
3889
3997
|
display_name: string;
|
|
3998
|
+
/** Brand-specific terminology for the `acs_user` type. */
|
|
3890
3999
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user') | undefined;
|
|
4000
|
+
/** Display name that corresponds to the brand-specific terminology for the `acs_user` type. */
|
|
3891
4001
|
external_type_display_name?: string | undefined;
|
|
4002
|
+
/** Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users). */
|
|
3892
4003
|
is_suspended: boolean;
|
|
4004
|
+
/** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. */
|
|
3893
4005
|
access_schedule?: {
|
|
3894
4006
|
starts_at: string;
|
|
3895
4007
|
ends_at: string;
|
|
3896
4008
|
} | undefined;
|
|
4009
|
+
/** ID of the user identity associated with the `acs_user`. */
|
|
3897
4010
|
user_identity_id?: string | undefined;
|
|
4011
|
+
/** Full name of the user identity associated with the `acs_user`. */
|
|
3898
4012
|
user_identity_full_name?: (string | null) | undefined;
|
|
4013
|
+
/** Email address of the user identity associated with the `acs_user`. */
|
|
3899
4014
|
user_identity_email_address?: (string | null) | undefined;
|
|
4015
|
+
/** Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3900
4016
|
user_identity_phone_number?: (string | null) | undefined;
|
|
4017
|
+
/** */
|
|
3901
4018
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
4019
|
+
/** */
|
|
3902
4020
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
4021
|
+
/** Warnings associated with the `acs_user`. */
|
|
3903
4022
|
warnings: Array<{
|
|
3904
4023
|
created_at: string;
|
|
3905
4024
|
message: string;
|
|
@@ -3909,6 +4028,7 @@ export interface Routes {
|
|
|
3909
4028
|
message: string;
|
|
3910
4029
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
3911
4030
|
}>;
|
|
4031
|
+
/** Errors associated with the `acs_user`. */
|
|
3912
4032
|
errors: Array<{
|
|
3913
4033
|
/** Date and time at which Seam created the error. */
|
|
3914
4034
|
created_at: string;
|
|
@@ -3940,11 +4060,14 @@ export interface Routes {
|
|
|
3940
4060
|
message: string;
|
|
3941
4061
|
error_code: 'failed_to_delete_on_acs_system';
|
|
3942
4062
|
}>;
|
|
4063
|
+
/** Full name of the `acs_user`. */
|
|
3943
4064
|
full_name?: string | undefined;
|
|
3944
4065
|
/**
|
|
3945
4066
|
* @deprecated use email_address. */
|
|
3946
4067
|
email?: string | undefined;
|
|
4068
|
+
/** Email address of the `acs_user`. */
|
|
3947
4069
|
email_address?: string | undefined;
|
|
4070
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3948
4071
|
phone_number?: string | undefined;
|
|
3949
4072
|
is_managed: false;
|
|
3950
4073
|
}>;
|
|
@@ -3972,12 +4095,16 @@ export interface Routes {
|
|
|
3972
4095
|
starts_at: string;
|
|
3973
4096
|
ends_at: string;
|
|
3974
4097
|
} | null) | undefined;
|
|
4098
|
+
/** ID of the `acs_user`. */
|
|
3975
4099
|
acs_user_id: string;
|
|
4100
|
+
/** Full name of the `acs_user`. */
|
|
3976
4101
|
full_name?: string | undefined;
|
|
3977
4102
|
/**
|
|
3978
4103
|
* @deprecated use email_address. */
|
|
3979
4104
|
email?: string | undefined;
|
|
4105
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
3980
4106
|
phone_number?: string | undefined;
|
|
4107
|
+
/** Email address of the `acs_user`. */
|
|
3981
4108
|
email_address?: string | undefined;
|
|
3982
4109
|
hid_acs_system_id?: string | undefined;
|
|
3983
4110
|
};
|
|
@@ -14463,20 +14590,7 @@ export interface Routes {
|
|
|
14463
14590
|
};
|
|
14464
14591
|
commonParams: {};
|
|
14465
14592
|
formData: {};
|
|
14466
|
-
jsonResponse: {
|
|
14467
|
-
thermostat_schedule: {
|
|
14468
|
-
thermostat_schedule_id: string;
|
|
14469
|
-
device_id: string;
|
|
14470
|
-
name?: string | undefined;
|
|
14471
|
-
climate_preset_key: string;
|
|
14472
|
-
max_override_period_minutes?: number;
|
|
14473
|
-
starts_at: string;
|
|
14474
|
-
ends_at: string;
|
|
14475
|
-
created_at: string;
|
|
14476
|
-
/** Collection of errors associated with the thermostat schedule, structured in a dictionary format. A unique "error_code" keys each error. Each error entry is an object containing two fields: "message" and "created_at." "message" is a string that describes the error. "created_at" is a date that indicates when the error was generated. This structure enables detailed tracking and timely response to critical issues. */
|
|
14477
|
-
errors?: any;
|
|
14478
|
-
};
|
|
14479
|
-
};
|
|
14593
|
+
jsonResponse: {};
|
|
14480
14594
|
};
|
|
14481
14595
|
'/thermostats/set_fallback_climate_preset': {
|
|
14482
14596
|
route: '/thermostats/set_fallback_climate_preset';
|
|
@@ -14910,22 +15024,7 @@ export interface Routes {
|
|
|
14910
15024
|
};
|
|
14911
15025
|
commonParams: {};
|
|
14912
15026
|
formData: {};
|
|
14913
|
-
jsonResponse: {
|
|
14914
|
-
climate_preset: {
|
|
14915
|
-
climate_preset_key: string;
|
|
14916
|
-
can_edit: boolean;
|
|
14917
|
-
can_delete: boolean;
|
|
14918
|
-
name?: string | null;
|
|
14919
|
-
display_name: string;
|
|
14920
|
-
fan_mode_setting?: ('auto' | 'on') | undefined;
|
|
14921
|
-
hvac_mode_setting?: ('off' | 'heat' | 'cool' | 'heat_cool') | undefined;
|
|
14922
|
-
cooling_set_point_celsius?: number | undefined;
|
|
14923
|
-
heating_set_point_celsius?: number | undefined;
|
|
14924
|
-
cooling_set_point_fahrenheit?: number | undefined;
|
|
14925
|
-
heating_set_point_fahrenheit?: number | undefined;
|
|
14926
|
-
manual_override_allowed: boolean;
|
|
14927
|
-
};
|
|
14928
|
-
};
|
|
15027
|
+
jsonResponse: {};
|
|
14929
15028
|
};
|
|
14930
15029
|
'/user_identities/add_acs_user': {
|
|
14931
15030
|
route: '/user_identities/add_acs_user';
|
|
@@ -16093,25 +16192,41 @@ export interface Routes {
|
|
|
16093
16192
|
formData: {};
|
|
16094
16193
|
jsonResponse: {
|
|
16095
16194
|
acs_users: Array<{
|
|
16195
|
+
/** ID of the `acs_user`. */
|
|
16096
16196
|
acs_user_id: string;
|
|
16197
|
+
/** ID of the access control system that contains the `acs_user`. */
|
|
16097
16198
|
acs_system_id: string;
|
|
16098
16199
|
hid_acs_system_id?: string | undefined;
|
|
16200
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`. */
|
|
16099
16201
|
workspace_id: string;
|
|
16202
|
+
/** Date and time at which the `acs_user` was created. */
|
|
16100
16203
|
created_at: string;
|
|
16204
|
+
/** Display name for the `acs_user`. */
|
|
16101
16205
|
display_name: string;
|
|
16206
|
+
/** Brand-specific terminology for the `acs_user` type. */
|
|
16102
16207
|
external_type?: ('pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user') | undefined;
|
|
16208
|
+
/** Display name that corresponds to the brand-specific terminology for the `acs_user` type. */
|
|
16103
16209
|
external_type_display_name?: string | undefined;
|
|
16210
|
+
/** Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users). */
|
|
16104
16211
|
is_suspended: boolean;
|
|
16212
|
+
/** `starts_at` and `ends_at` timestamps for the `acs_user`'s access. */
|
|
16105
16213
|
access_schedule?: {
|
|
16106
16214
|
starts_at: string;
|
|
16107
16215
|
ends_at: string;
|
|
16108
16216
|
} | undefined;
|
|
16217
|
+
/** ID of the user identity associated with the `acs_user`. */
|
|
16109
16218
|
user_identity_id?: string | undefined;
|
|
16219
|
+
/** Full name of the user identity associated with the `acs_user`. */
|
|
16110
16220
|
user_identity_full_name?: (string | null) | undefined;
|
|
16221
|
+
/** Email address of the user identity associated with the `acs_user`. */
|
|
16111
16222
|
user_identity_email_address?: (string | null) | undefined;
|
|
16223
|
+
/** Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
16112
16224
|
user_identity_phone_number?: (string | null) | undefined;
|
|
16225
|
+
/** */
|
|
16113
16226
|
latest_desired_state_synced_with_provider_at?: string | undefined;
|
|
16227
|
+
/** */
|
|
16114
16228
|
is_latest_desired_state_synced_with_provider?: boolean | undefined;
|
|
16229
|
+
/** Warnings associated with the `acs_user`. */
|
|
16115
16230
|
warnings: Array<{
|
|
16116
16231
|
created_at: string;
|
|
16117
16232
|
message: string;
|
|
@@ -16121,6 +16236,7 @@ export interface Routes {
|
|
|
16121
16236
|
message: string;
|
|
16122
16237
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
16123
16238
|
}>;
|
|
16239
|
+
/** Errors associated with the `acs_user`. */
|
|
16124
16240
|
errors: Array<{
|
|
16125
16241
|
/** Date and time at which Seam created the error. */
|
|
16126
16242
|
created_at: string;
|
|
@@ -16152,11 +16268,14 @@ export interface Routes {
|
|
|
16152
16268
|
message: string;
|
|
16153
16269
|
error_code: 'failed_to_delete_on_acs_system';
|
|
16154
16270
|
}>;
|
|
16271
|
+
/** Full name of the `acs_user`. */
|
|
16155
16272
|
full_name?: string | undefined;
|
|
16156
16273
|
/**
|
|
16157
16274
|
* @deprecated use email_address. */
|
|
16158
16275
|
email?: string | undefined;
|
|
16276
|
+
/** Email address of the `acs_user`. */
|
|
16159
16277
|
email_address?: string | undefined;
|
|
16278
|
+
/** Phone number of the `acs_user` in E.164 format (for example, `+15555550100`). */
|
|
16160
16279
|
phone_number?: string | undefined;
|
|
16161
16280
|
is_managed: true;
|
|
16162
16281
|
}>;
|
package/package.json
CHANGED
|
@@ -127,39 +127,109 @@ export const acs_users_warnings = z
|
|
|
127
127
|
export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
|
|
128
128
|
|
|
129
129
|
const user_fields = z.object({
|
|
130
|
-
full_name: z.string().optional(),
|
|
130
|
+
full_name: z.string().optional().describe('Full name of the `acs_user`.'),
|
|
131
131
|
email: z.string().email().optional().describe(`
|
|
132
132
|
---
|
|
133
133
|
deprecated: use email_address.
|
|
134
134
|
---
|
|
135
135
|
`),
|
|
136
|
-
email_address: z
|
|
137
|
-
|
|
136
|
+
email_address: z
|
|
137
|
+
.string()
|
|
138
|
+
.email()
|
|
139
|
+
.optional()
|
|
140
|
+
.describe('Email address of the `acs_user`.'),
|
|
141
|
+
phone_number: phone_number
|
|
142
|
+
.optional()
|
|
143
|
+
.describe(
|
|
144
|
+
'Phone number of the `acs_user` in E.164 format (for example, `+15555550100`).',
|
|
145
|
+
),
|
|
138
146
|
})
|
|
139
147
|
|
|
140
148
|
const common_acs_user = z
|
|
141
149
|
.object({
|
|
142
|
-
acs_user_id: z.string().uuid(),
|
|
143
|
-
acs_system_id: z
|
|
150
|
+
acs_user_id: z.string().uuid().describe('ID of the `acs_user`.'),
|
|
151
|
+
acs_system_id: z
|
|
152
|
+
.string()
|
|
153
|
+
.uuid()
|
|
154
|
+
.describe(
|
|
155
|
+
'ID of the access control system that contains the `acs_user`.',
|
|
156
|
+
),
|
|
144
157
|
hid_acs_system_id: z.string().uuid().optional(),
|
|
145
|
-
workspace_id: z
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
158
|
+
workspace_id: z
|
|
159
|
+
.string()
|
|
160
|
+
.uuid()
|
|
161
|
+
.describe(
|
|
162
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`.',
|
|
163
|
+
),
|
|
164
|
+
created_at: z
|
|
165
|
+
.string()
|
|
166
|
+
.datetime()
|
|
167
|
+
.describe('Date and time at which the `acs_user` was created.'),
|
|
168
|
+
display_name: z.string().describe('Display name for the `acs_user`.'),
|
|
169
|
+
external_type: acs_user_external_type
|
|
170
|
+
.optional()
|
|
171
|
+
.describe('Brand-specific terminology for the `acs_user` type.'),
|
|
172
|
+
external_type_display_name: z
|
|
173
|
+
.string()
|
|
174
|
+
.optional()
|
|
175
|
+
.describe(
|
|
176
|
+
'Display name that corresponds to the brand-specific terminology for the `acs_user` type.',
|
|
177
|
+
),
|
|
178
|
+
is_suspended: z
|
|
179
|
+
.boolean()
|
|
180
|
+
.describe(
|
|
181
|
+
'Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).',
|
|
182
|
+
),
|
|
183
|
+
access_schedule: schedule
|
|
184
|
+
.optional()
|
|
185
|
+
.describe(
|
|
186
|
+
"`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
|
|
187
|
+
),
|
|
188
|
+
user_identity_id: z
|
|
189
|
+
.string()
|
|
190
|
+
.optional()
|
|
191
|
+
.describe('ID of the user identity associated with the `acs_user`.'),
|
|
192
|
+
user_identity_full_name: z
|
|
193
|
+
.string()
|
|
194
|
+
.nullable()
|
|
195
|
+
.optional()
|
|
196
|
+
.describe(
|
|
197
|
+
'Full name of the user identity associated with the `acs_user`.',
|
|
198
|
+
),
|
|
199
|
+
user_identity_email_address: z
|
|
200
|
+
.string()
|
|
201
|
+
.nullable()
|
|
202
|
+
.optional()
|
|
203
|
+
.describe(
|
|
204
|
+
'Email address of the user identity associated with the `acs_user`.',
|
|
205
|
+
),
|
|
206
|
+
user_identity_phone_number: z
|
|
207
|
+
.string()
|
|
208
|
+
.nullable()
|
|
209
|
+
.optional()
|
|
210
|
+
.describe(
|
|
211
|
+
'Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`).',
|
|
212
|
+
),
|
|
156
213
|
latest_desired_state_synced_with_provider_at: z
|
|
157
214
|
.string()
|
|
158
215
|
.datetime()
|
|
159
|
-
.optional()
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
216
|
+
.optional().describe(`
|
|
217
|
+
---
|
|
218
|
+
undocumented: Only used internally.
|
|
219
|
+
---
|
|
220
|
+
`),
|
|
221
|
+
is_latest_desired_state_synced_with_provider: z.boolean().optional()
|
|
222
|
+
.describe(`
|
|
223
|
+
---
|
|
224
|
+
undocumented: Only used internally.
|
|
225
|
+
---
|
|
226
|
+
`),
|
|
227
|
+
warnings: z
|
|
228
|
+
.array(acs_users_warnings)
|
|
229
|
+
.describe('Warnings associated with the `acs_user`.'),
|
|
230
|
+
errors: z
|
|
231
|
+
.array(acs_user_errors)
|
|
232
|
+
.describe('Errors associated with the `acs_user`.'),
|
|
163
233
|
})
|
|
164
234
|
.merge(user_fields)
|
|
165
235
|
|