@seamapi/types 1.481.0 → 1.483.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 +27 -9
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +32 -10
- package/dist/index.cjs +27 -9
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +736 -212
- package/lib/seam/connect/models/batch.js +1 -0
- package/lib/seam/connect/models/batch.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +3 -3
- package/lib/seam/connect/models/connected-accounts/connected-account.js +0 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +24 -2
- package/lib/seam/connect/openapi.js +25 -8
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +5 -5
- package/package.json +1 -1
- package/src/lib/seam/connect/models/batch.ts +1 -0
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +0 -1
- package/src/lib/seam/connect/openapi.ts +25 -8
- package/src/lib/seam/connect/route-types.ts +5 -5
|
@@ -4448,7 +4448,7 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
4448
4448
|
} | undefined;
|
|
4449
4449
|
}>, "many">>;
|
|
4450
4450
|
connected_accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4451
|
-
connected_account_id: z.
|
|
4451
|
+
connected_account_id: z.ZodString;
|
|
4452
4452
|
created_at: z.ZodOptional<z.ZodString>;
|
|
4453
4453
|
user_identifier: z.ZodOptional<z.ZodObject<{
|
|
4454
4454
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -4722,6 +4722,7 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
4722
4722
|
is_connected_account_error?: boolean | undefined;
|
|
4723
4723
|
is_bridge_error?: boolean | undefined;
|
|
4724
4724
|
})[];
|
|
4725
|
+
connected_account_id: string;
|
|
4725
4726
|
account_type_display_name: string;
|
|
4726
4727
|
warnings: ({
|
|
4727
4728
|
message: string;
|
|
@@ -4748,7 +4749,6 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
4748
4749
|
automatically_manage_new_devices: boolean;
|
|
4749
4750
|
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
4750
4751
|
created_at?: string | undefined;
|
|
4751
|
-
connected_account_id?: string | undefined;
|
|
4752
4752
|
user_identifier?: {
|
|
4753
4753
|
phone?: string | undefined;
|
|
4754
4754
|
username?: string | undefined;
|
|
@@ -4792,6 +4792,7 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
4792
4792
|
is_connected_account_error?: boolean | undefined;
|
|
4793
4793
|
is_bridge_error?: boolean | undefined;
|
|
4794
4794
|
})[];
|
|
4795
|
+
connected_account_id: string;
|
|
4795
4796
|
account_type_display_name: string;
|
|
4796
4797
|
warnings: ({
|
|
4797
4798
|
message: string;
|
|
@@ -4818,7 +4819,6 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
4818
4819
|
automatically_manage_new_devices: boolean;
|
|
4819
4820
|
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
4820
4821
|
created_at?: string | undefined;
|
|
4821
|
-
connected_account_id?: string | undefined;
|
|
4822
4822
|
user_identifier?: {
|
|
4823
4823
|
phone?: string | undefined;
|
|
4824
4824
|
username?: string | undefined;
|
|
@@ -5884,6 +5884,7 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
5884
5884
|
is_connected_account_error?: boolean | undefined;
|
|
5885
5885
|
is_bridge_error?: boolean | undefined;
|
|
5886
5886
|
})[];
|
|
5887
|
+
connected_account_id: string;
|
|
5887
5888
|
account_type_display_name: string;
|
|
5888
5889
|
warnings: ({
|
|
5889
5890
|
message: string;
|
|
@@ -5910,7 +5911,6 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
5910
5911
|
automatically_manage_new_devices: boolean;
|
|
5911
5912
|
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
5912
5913
|
created_at?: string | undefined;
|
|
5913
|
-
connected_account_id?: string | undefined;
|
|
5914
5914
|
user_identifier?: {
|
|
5915
5915
|
phone?: string | undefined;
|
|
5916
5916
|
username?: string | undefined;
|
|
@@ -6749,6 +6749,7 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
6749
6749
|
is_connected_account_error?: boolean | undefined;
|
|
6750
6750
|
is_bridge_error?: boolean | undefined;
|
|
6751
6751
|
})[];
|
|
6752
|
+
connected_account_id: string;
|
|
6752
6753
|
account_type_display_name: string;
|
|
6753
6754
|
warnings: ({
|
|
6754
6755
|
message: string;
|
|
@@ -6775,7 +6776,6 @@ export declare const spaces_batch: z.ZodObject<{
|
|
|
6775
6776
|
automatically_manage_new_devices: boolean;
|
|
6776
6777
|
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
6777
6778
|
created_at?: string | undefined;
|
|
6778
|
-
connected_account_id?: string | undefined;
|
|
6779
6779
|
user_identifier?: {
|
|
6780
6780
|
phone?: string | undefined;
|
|
6781
6781
|
username?: string | undefined;
|
|
@@ -11412,7 +11412,7 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
11412
11412
|
acs_user_ids: string[];
|
|
11413
11413
|
}>, "many">>;
|
|
11414
11414
|
connected_accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11415
|
-
connected_account_id: z.
|
|
11415
|
+
connected_account_id: z.ZodString;
|
|
11416
11416
|
created_at: z.ZodOptional<z.ZodString>;
|
|
11417
11417
|
user_identifier: z.ZodOptional<z.ZodObject<{
|
|
11418
11418
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -11686,6 +11686,7 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
11686
11686
|
is_connected_account_error?: boolean | undefined;
|
|
11687
11687
|
is_bridge_error?: boolean | undefined;
|
|
11688
11688
|
})[];
|
|
11689
|
+
connected_account_id: string;
|
|
11689
11690
|
account_type_display_name: string;
|
|
11690
11691
|
warnings: ({
|
|
11691
11692
|
message: string;
|
|
@@ -11712,7 +11713,6 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
11712
11713
|
automatically_manage_new_devices: boolean;
|
|
11713
11714
|
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
11714
11715
|
created_at?: string | undefined;
|
|
11715
|
-
connected_account_id?: string | undefined;
|
|
11716
11716
|
user_identifier?: {
|
|
11717
11717
|
phone?: string | undefined;
|
|
11718
11718
|
username?: string | undefined;
|
|
@@ -11756,6 +11756,7 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
11756
11756
|
is_connected_account_error?: boolean | undefined;
|
|
11757
11757
|
is_bridge_error?: boolean | undefined;
|
|
11758
11758
|
})[];
|
|
11759
|
+
connected_account_id: string;
|
|
11759
11760
|
account_type_display_name: string;
|
|
11760
11761
|
warnings: ({
|
|
11761
11762
|
message: string;
|
|
@@ -11782,7 +11783,6 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
11782
11783
|
automatically_manage_new_devices: boolean;
|
|
11783
11784
|
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
11784
11785
|
created_at?: string | undefined;
|
|
11785
|
-
connected_account_id?: string | undefined;
|
|
11786
11786
|
user_identifier?: {
|
|
11787
11787
|
phone?: string | undefined;
|
|
11788
11788
|
username?: string | undefined;
|
|
@@ -12848,6 +12848,7 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
12848
12848
|
is_connected_account_error?: boolean | undefined;
|
|
12849
12849
|
is_bridge_error?: boolean | undefined;
|
|
12850
12850
|
})[];
|
|
12851
|
+
connected_account_id: string;
|
|
12851
12852
|
account_type_display_name: string;
|
|
12852
12853
|
warnings: ({
|
|
12853
12854
|
message: string;
|
|
@@ -12874,7 +12875,6 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
12874
12875
|
automatically_manage_new_devices: boolean;
|
|
12875
12876
|
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
12876
12877
|
created_at?: string | undefined;
|
|
12877
|
-
connected_account_id?: string | undefined;
|
|
12878
12878
|
user_identifier?: {
|
|
12879
12879
|
phone?: string | undefined;
|
|
12880
12880
|
username?: string | undefined;
|
|
@@ -13740,6 +13740,7 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
13740
13740
|
is_connected_account_error?: boolean | undefined;
|
|
13741
13741
|
is_bridge_error?: boolean | undefined;
|
|
13742
13742
|
})[];
|
|
13743
|
+
connected_account_id: string;
|
|
13743
13744
|
account_type_display_name: string;
|
|
13744
13745
|
warnings: ({
|
|
13745
13746
|
message: string;
|
|
@@ -13766,7 +13767,6 @@ export declare const access_grants_batch: z.ZodObject<{
|
|
|
13766
13767
|
automatically_manage_new_devices: boolean;
|
|
13767
13768
|
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
13768
13769
|
created_at?: string | undefined;
|
|
13769
|
-
connected_account_id?: string | undefined;
|
|
13770
13770
|
user_identifier?: {
|
|
13771
13771
|
phone?: string | undefined;
|
|
13772
13772
|
username?: string | undefined;
|
|
@@ -33380,226 +33380,608 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
33380
33380
|
can_unlock_with_code?: boolean | undefined;
|
|
33381
33381
|
can_run_thermostat_programs?: boolean | undefined;
|
|
33382
33382
|
}>, "many">>;
|
|
33383
|
-
|
|
33384
|
-
|
|
33385
|
-
|
|
33386
|
-
|
|
33387
|
-
|
|
33388
|
-
|
|
33389
|
-
|
|
33390
|
-
|
|
33391
|
-
|
|
33392
|
-
|
|
33393
|
-
|
|
33394
|
-
|
|
33395
|
-
|
|
33396
|
-
|
|
33397
|
-
|
|
33398
|
-
|
|
33399
|
-
|
|
33400
|
-
|
|
33401
|
-
|
|
33402
|
-
|
|
33403
|
-
|
|
33404
|
-
|
|
33405
|
-
|
|
33406
|
-
|
|
33407
|
-
|
|
33408
|
-
created_at: string;
|
|
33409
|
-
connected_account_id: string | null;
|
|
33410
|
-
custom_metadata: Record<string, string | boolean>;
|
|
33411
|
-
automatically_manage_new_devices: boolean;
|
|
33412
|
-
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
33413
|
-
connect_webview_id: string;
|
|
33414
|
-
url: string;
|
|
33415
|
-
device_selection_mode: "none" | "single" | "multiple";
|
|
33416
|
-
accepted_providers: string[];
|
|
33417
|
-
accepted_devices: string[];
|
|
33418
|
-
any_device_allowed: boolean;
|
|
33419
|
-
any_provider_allowed: boolean;
|
|
33420
|
-
login_successful: boolean;
|
|
33421
|
-
custom_redirect_url: string | null;
|
|
33422
|
-
custom_redirect_failure_url: string | null;
|
|
33423
|
-
wait_for_device_creation: boolean;
|
|
33424
|
-
authorized_at: string | null;
|
|
33425
|
-
selected_provider: string | null;
|
|
33426
|
-
customer_key?: string | undefined;
|
|
33427
|
-
}, {
|
|
33428
|
-
status: "pending" | "failed" | "authorized";
|
|
33429
|
-
workspace_id: string;
|
|
33430
|
-
created_at: string;
|
|
33431
|
-
connected_account_id: string | null;
|
|
33432
|
-
custom_metadata: Record<string, string | boolean>;
|
|
33433
|
-
automatically_manage_new_devices: boolean;
|
|
33434
|
-
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
33435
|
-
connect_webview_id: string;
|
|
33436
|
-
url: string;
|
|
33437
|
-
device_selection_mode: "none" | "single" | "multiple";
|
|
33438
|
-
accepted_providers: string[];
|
|
33439
|
-
accepted_devices: string[];
|
|
33440
|
-
any_device_allowed: boolean;
|
|
33441
|
-
any_provider_allowed: boolean;
|
|
33442
|
-
login_successful: boolean;
|
|
33443
|
-
custom_redirect_url: string | null;
|
|
33444
|
-
custom_redirect_failure_url: string | null;
|
|
33445
|
-
wait_for_device_creation: boolean;
|
|
33446
|
-
authorized_at: string | null;
|
|
33447
|
-
selected_provider: string | null;
|
|
33448
|
-
customer_key?: string | undefined;
|
|
33449
|
-
}>, "many">>;
|
|
33450
|
-
access_methods: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33451
|
-
workspace_id: z.ZodString;
|
|
33452
|
-
access_method_id: z.ZodString;
|
|
33453
|
-
display_name: z.ZodString;
|
|
33454
|
-
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
33455
|
-
created_at: z.ZodString;
|
|
33456
|
-
issued_at: z.ZodNullable<z.ZodString>;
|
|
33457
|
-
is_issued: z.ZodBoolean;
|
|
33458
|
-
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
33459
|
-
client_session_token: z.ZodOptional<z.ZodString>;
|
|
33460
|
-
is_encoding_required: z.ZodOptional<z.ZodBoolean>;
|
|
33461
|
-
code: z.ZodOptional<z.ZodString>;
|
|
33462
|
-
}, "strip", z.ZodTypeAny, {
|
|
33463
|
-
display_name: string;
|
|
33464
|
-
workspace_id: string;
|
|
33465
|
-
created_at: string;
|
|
33466
|
-
mode: "code" | "card" | "mobile_key";
|
|
33467
|
-
access_method_id: string;
|
|
33468
|
-
issued_at: string | null;
|
|
33469
|
-
is_issued: boolean;
|
|
33470
|
-
code?: string | undefined;
|
|
33471
|
-
client_session_token?: string | undefined;
|
|
33472
|
-
instant_key_url?: string | undefined;
|
|
33473
|
-
is_encoding_required?: boolean | undefined;
|
|
33474
|
-
}, {
|
|
33475
|
-
display_name: string;
|
|
33476
|
-
workspace_id: string;
|
|
33477
|
-
created_at: string;
|
|
33478
|
-
mode: "code" | "card" | "mobile_key";
|
|
33479
|
-
access_method_id: string;
|
|
33480
|
-
issued_at: string | null;
|
|
33481
|
-
is_issued: boolean;
|
|
33482
|
-
code?: string | undefined;
|
|
33483
|
-
client_session_token?: string | undefined;
|
|
33484
|
-
instant_key_url?: string | undefined;
|
|
33485
|
-
is_encoding_required?: boolean | undefined;
|
|
33486
|
-
}>, "many">>;
|
|
33487
|
-
access_grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33488
|
-
workspace_id: z.ZodString;
|
|
33489
|
-
access_grant_id: z.ZodString;
|
|
33490
|
-
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
33491
|
-
user_identity_id: z.ZodString;
|
|
33492
|
-
location_ids: z.ZodArray<z.ZodString, "many">;
|
|
33493
|
-
space_ids: z.ZodArray<z.ZodString, "many">;
|
|
33494
|
-
requested_access_methods: z.ZodArray<z.ZodObject<{
|
|
33495
|
-
display_name: z.ZodString;
|
|
33496
|
-
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
33383
|
+
connected_accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33384
|
+
connected_account_id: z.ZodString;
|
|
33385
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
33386
|
+
user_identifier: z.ZodOptional<z.ZodObject<{
|
|
33387
|
+
username: z.ZodOptional<z.ZodString>;
|
|
33388
|
+
api_url: z.ZodOptional<z.ZodString>;
|
|
33389
|
+
email: z.ZodOptional<z.ZodString>;
|
|
33390
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
33391
|
+
exclusive: z.ZodOptional<z.ZodBoolean>;
|
|
33392
|
+
}, "strip", z.ZodTypeAny, {
|
|
33393
|
+
phone?: string | undefined;
|
|
33394
|
+
username?: string | undefined;
|
|
33395
|
+
api_url?: string | undefined;
|
|
33396
|
+
email?: string | undefined;
|
|
33397
|
+
exclusive?: boolean | undefined;
|
|
33398
|
+
}, {
|
|
33399
|
+
phone?: string | undefined;
|
|
33400
|
+
username?: string | undefined;
|
|
33401
|
+
api_url?: string | undefined;
|
|
33402
|
+
email?: string | undefined;
|
|
33403
|
+
exclusive?: boolean | undefined;
|
|
33404
|
+
}>>;
|
|
33405
|
+
account_type: z.ZodOptional<z.ZodString>;
|
|
33406
|
+
account_type_display_name: z.ZodString;
|
|
33407
|
+
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
33497
33408
|
created_at: z.ZodString;
|
|
33498
|
-
|
|
33409
|
+
message: z.ZodString;
|
|
33410
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
33411
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
33412
|
+
} & {
|
|
33413
|
+
error_code: z.ZodLiteral<"account_disconnected">;
|
|
33499
33414
|
}, "strip", z.ZodTypeAny, {
|
|
33500
|
-
|
|
33415
|
+
message: string;
|
|
33501
33416
|
created_at: string;
|
|
33502
|
-
|
|
33503
|
-
|
|
33417
|
+
error_code: "account_disconnected";
|
|
33418
|
+
is_connected_account_error?: boolean | undefined;
|
|
33419
|
+
is_bridge_error?: boolean | undefined;
|
|
33504
33420
|
}, {
|
|
33505
|
-
display_name: string;
|
|
33506
|
-
created_at: string;
|
|
33507
|
-
mode: "code" | "card" | "mobile_key";
|
|
33508
|
-
created_access_method_ids: string[];
|
|
33509
|
-
}>, "many">;
|
|
33510
|
-
access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
33511
|
-
client_session_token: z.ZodOptional<z.ZodString>;
|
|
33512
|
-
name: z.ZodNullable<z.ZodString>;
|
|
33513
|
-
display_name: z.ZodString;
|
|
33514
|
-
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
33515
|
-
created_at: z.ZodString;
|
|
33516
|
-
starts_at: z.ZodString;
|
|
33517
|
-
ends_at: z.ZodNullable<z.ZodString>;
|
|
33518
|
-
}, "strip", z.ZodTypeAny, {
|
|
33519
|
-
name: string | null;
|
|
33520
|
-
display_name: string;
|
|
33521
|
-
workspace_id: string;
|
|
33522
|
-
created_at: string;
|
|
33523
|
-
starts_at: string;
|
|
33524
|
-
ends_at: string | null;
|
|
33525
|
-
access_grant_id: string;
|
|
33526
|
-
user_identity_id: string;
|
|
33527
|
-
location_ids: string[];
|
|
33528
|
-
space_ids: string[];
|
|
33529
|
-
requested_access_methods: {
|
|
33530
|
-
display_name: string;
|
|
33531
|
-
created_at: string;
|
|
33532
|
-
mode: "code" | "card" | "mobile_key";
|
|
33533
|
-
created_access_method_ids: string[];
|
|
33534
|
-
}[];
|
|
33535
|
-
access_method_ids: string[];
|
|
33536
|
-
access_grant_key?: string | undefined;
|
|
33537
|
-
client_session_token?: string | undefined;
|
|
33538
|
-
instant_key_url?: string | undefined;
|
|
33539
|
-
}, {
|
|
33540
|
-
name: string | null;
|
|
33541
|
-
display_name: string;
|
|
33542
|
-
workspace_id: string;
|
|
33543
|
-
created_at: string;
|
|
33544
|
-
starts_at: string;
|
|
33545
|
-
ends_at: string | null;
|
|
33546
|
-
access_grant_id: string;
|
|
33547
|
-
user_identity_id: string;
|
|
33548
|
-
location_ids: string[];
|
|
33549
|
-
space_ids: string[];
|
|
33550
|
-
requested_access_methods: {
|
|
33551
|
-
display_name: string;
|
|
33552
|
-
created_at: string;
|
|
33553
|
-
mode: "code" | "card" | "mobile_key";
|
|
33554
|
-
created_access_method_ids: string[];
|
|
33555
|
-
}[];
|
|
33556
|
-
access_method_ids: string[];
|
|
33557
|
-
access_grant_key?: string | undefined;
|
|
33558
|
-
client_session_token?: string | undefined;
|
|
33559
|
-
instant_key_url?: string | undefined;
|
|
33560
|
-
}>, "many">>;
|
|
33561
|
-
}, "strip", z.ZodTypeAny, {
|
|
33562
|
-
batch_type: "workspaces";
|
|
33563
|
-
spaces?: {
|
|
33564
|
-
name: string;
|
|
33565
|
-
display_name: string;
|
|
33566
|
-
workspace_id: string;
|
|
33567
|
-
created_at: string;
|
|
33568
|
-
device_count: number;
|
|
33569
|
-
space_id: string;
|
|
33570
|
-
acs_entrance_count: number;
|
|
33571
|
-
space_key?: string | undefined;
|
|
33572
|
-
}[] | undefined;
|
|
33573
|
-
devices?: {
|
|
33574
|
-
display_name: string;
|
|
33575
|
-
device_id: string;
|
|
33576
|
-
workspace_id: string;
|
|
33577
|
-
created_at: string;
|
|
33578
|
-
errors: ({
|
|
33579
33421
|
message: string;
|
|
33580
33422
|
created_at: string;
|
|
33581
33423
|
error_code: "account_disconnected";
|
|
33582
33424
|
is_connected_account_error?: boolean | undefined;
|
|
33583
33425
|
is_bridge_error?: boolean | undefined;
|
|
33584
|
-
}
|
|
33426
|
+
}>, z.ZodObject<{
|
|
33427
|
+
created_at: z.ZodString;
|
|
33428
|
+
message: z.ZodString;
|
|
33429
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
33430
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
33431
|
+
} & {
|
|
33432
|
+
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
33433
|
+
}, "strip", z.ZodTypeAny, {
|
|
33585
33434
|
message: string;
|
|
33586
33435
|
created_at: string;
|
|
33587
33436
|
error_code: "invalid_credentials";
|
|
33588
33437
|
is_connected_account_error?: boolean | undefined;
|
|
33589
33438
|
is_bridge_error?: boolean | undefined;
|
|
33590
|
-
}
|
|
33439
|
+
}, {
|
|
33591
33440
|
message: string;
|
|
33592
33441
|
created_at: string;
|
|
33593
|
-
error_code: "
|
|
33442
|
+
error_code: "invalid_credentials";
|
|
33594
33443
|
is_connected_account_error?: boolean | undefined;
|
|
33595
33444
|
is_bridge_error?: boolean | undefined;
|
|
33596
|
-
}
|
|
33597
|
-
|
|
33598
|
-
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33602
|
-
|
|
33445
|
+
}>, z.ZodObject<{
|
|
33446
|
+
created_at: z.ZodString;
|
|
33447
|
+
message: z.ZodString;
|
|
33448
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
33449
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
33450
|
+
} & {
|
|
33451
|
+
error_code: z.ZodLiteral<"bridge_disconnected">;
|
|
33452
|
+
}, "strip", z.ZodTypeAny, {
|
|
33453
|
+
message: string;
|
|
33454
|
+
created_at: string;
|
|
33455
|
+
error_code: "bridge_disconnected";
|
|
33456
|
+
is_connected_account_error?: boolean | undefined;
|
|
33457
|
+
is_bridge_error?: boolean | undefined;
|
|
33458
|
+
}, {
|
|
33459
|
+
message: string;
|
|
33460
|
+
created_at: string;
|
|
33461
|
+
error_code: "bridge_disconnected";
|
|
33462
|
+
is_connected_account_error?: boolean | undefined;
|
|
33463
|
+
is_bridge_error?: boolean | undefined;
|
|
33464
|
+
}>, z.ZodObject<{
|
|
33465
|
+
created_at: z.ZodString;
|
|
33466
|
+
message: z.ZodString;
|
|
33467
|
+
is_connected_account_error: z.ZodOptional<z.ZodBoolean>;
|
|
33468
|
+
is_bridge_error: z.ZodOptional<z.ZodBoolean>;
|
|
33469
|
+
} & {
|
|
33470
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
33471
|
+
salto_ks_metadata: z.ZodObject<{
|
|
33472
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
33473
|
+
site_id: z.ZodString;
|
|
33474
|
+
site_name: z.ZodString;
|
|
33475
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
33476
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
33477
|
+
}, "strip", z.ZodTypeAny, {
|
|
33478
|
+
site_id: string;
|
|
33479
|
+
site_name: string;
|
|
33480
|
+
subscribed_site_user_count: number;
|
|
33481
|
+
site_user_subscription_limit: number;
|
|
33482
|
+
}, {
|
|
33483
|
+
site_id: string;
|
|
33484
|
+
site_name: string;
|
|
33485
|
+
subscribed_site_user_count: number;
|
|
33486
|
+
site_user_subscription_limit: number;
|
|
33487
|
+
}>, "many">;
|
|
33488
|
+
}, "strip", z.ZodTypeAny, {
|
|
33489
|
+
sites: {
|
|
33490
|
+
site_id: string;
|
|
33491
|
+
site_name: string;
|
|
33492
|
+
subscribed_site_user_count: number;
|
|
33493
|
+
site_user_subscription_limit: number;
|
|
33494
|
+
}[];
|
|
33495
|
+
}, {
|
|
33496
|
+
sites: {
|
|
33497
|
+
site_id: string;
|
|
33498
|
+
site_name: string;
|
|
33499
|
+
subscribed_site_user_count: number;
|
|
33500
|
+
site_user_subscription_limit: number;
|
|
33501
|
+
}[];
|
|
33502
|
+
}>;
|
|
33503
|
+
}, "strip", z.ZodTypeAny, {
|
|
33504
|
+
message: string;
|
|
33505
|
+
created_at: string;
|
|
33506
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
33507
|
+
salto_ks_metadata: {
|
|
33508
|
+
sites: {
|
|
33509
|
+
site_id: string;
|
|
33510
|
+
site_name: string;
|
|
33511
|
+
subscribed_site_user_count: number;
|
|
33512
|
+
site_user_subscription_limit: number;
|
|
33513
|
+
}[];
|
|
33514
|
+
};
|
|
33515
|
+
is_connected_account_error?: boolean | undefined;
|
|
33516
|
+
is_bridge_error?: boolean | undefined;
|
|
33517
|
+
}, {
|
|
33518
|
+
message: string;
|
|
33519
|
+
created_at: string;
|
|
33520
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
33521
|
+
salto_ks_metadata: {
|
|
33522
|
+
sites: {
|
|
33523
|
+
site_id: string;
|
|
33524
|
+
site_name: string;
|
|
33525
|
+
subscribed_site_user_count: number;
|
|
33526
|
+
site_user_subscription_limit: number;
|
|
33527
|
+
}[];
|
|
33528
|
+
};
|
|
33529
|
+
is_connected_account_error?: boolean | undefined;
|
|
33530
|
+
is_bridge_error?: boolean | undefined;
|
|
33531
|
+
}>]>, "many">;
|
|
33532
|
+
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
33533
|
+
created_at: z.ZodString;
|
|
33534
|
+
message: z.ZodString;
|
|
33535
|
+
} & {
|
|
33536
|
+
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
33537
|
+
}, "strip", z.ZodTypeAny, {
|
|
33538
|
+
message: string;
|
|
33539
|
+
created_at: string;
|
|
33540
|
+
warning_code: "scheduled_maintenance_window";
|
|
33541
|
+
}, {
|
|
33542
|
+
message: string;
|
|
33543
|
+
created_at: string;
|
|
33544
|
+
warning_code: "scheduled_maintenance_window";
|
|
33545
|
+
}>, z.ZodObject<{
|
|
33546
|
+
created_at: z.ZodString;
|
|
33547
|
+
message: z.ZodString;
|
|
33548
|
+
} & {
|
|
33549
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
33550
|
+
}, "strip", z.ZodTypeAny, {
|
|
33551
|
+
message: string;
|
|
33552
|
+
created_at: string;
|
|
33553
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
33554
|
+
}, {
|
|
33555
|
+
message: string;
|
|
33556
|
+
created_at: string;
|
|
33557
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
33558
|
+
}>, z.ZodObject<{
|
|
33559
|
+
created_at: z.ZodString;
|
|
33560
|
+
message: z.ZodString;
|
|
33561
|
+
} & {
|
|
33562
|
+
warning_code: z.ZodLiteral<"salto_ks_subscription_limit_almost_reached">;
|
|
33563
|
+
salto_ks_metadata: z.ZodObject<{
|
|
33564
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
33565
|
+
site_id: z.ZodString;
|
|
33566
|
+
site_name: z.ZodString;
|
|
33567
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
33568
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
33569
|
+
}, "strip", z.ZodTypeAny, {
|
|
33570
|
+
site_id: string;
|
|
33571
|
+
site_name: string;
|
|
33572
|
+
subscribed_site_user_count: number;
|
|
33573
|
+
site_user_subscription_limit: number;
|
|
33574
|
+
}, {
|
|
33575
|
+
site_id: string;
|
|
33576
|
+
site_name: string;
|
|
33577
|
+
subscribed_site_user_count: number;
|
|
33578
|
+
site_user_subscription_limit: number;
|
|
33579
|
+
}>, "many">;
|
|
33580
|
+
}, "strip", z.ZodTypeAny, {
|
|
33581
|
+
sites: {
|
|
33582
|
+
site_id: string;
|
|
33583
|
+
site_name: string;
|
|
33584
|
+
subscribed_site_user_count: number;
|
|
33585
|
+
site_user_subscription_limit: number;
|
|
33586
|
+
}[];
|
|
33587
|
+
}, {
|
|
33588
|
+
sites: {
|
|
33589
|
+
site_id: string;
|
|
33590
|
+
site_name: string;
|
|
33591
|
+
subscribed_site_user_count: number;
|
|
33592
|
+
site_user_subscription_limit: number;
|
|
33593
|
+
}[];
|
|
33594
|
+
}>;
|
|
33595
|
+
}, "strip", z.ZodTypeAny, {
|
|
33596
|
+
message: string;
|
|
33597
|
+
created_at: string;
|
|
33598
|
+
salto_ks_metadata: {
|
|
33599
|
+
sites: {
|
|
33600
|
+
site_id: string;
|
|
33601
|
+
site_name: string;
|
|
33602
|
+
subscribed_site_user_count: number;
|
|
33603
|
+
site_user_subscription_limit: number;
|
|
33604
|
+
}[];
|
|
33605
|
+
};
|
|
33606
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
33607
|
+
}, {
|
|
33608
|
+
message: string;
|
|
33609
|
+
created_at: string;
|
|
33610
|
+
salto_ks_metadata: {
|
|
33611
|
+
sites: {
|
|
33612
|
+
site_id: string;
|
|
33613
|
+
site_name: string;
|
|
33614
|
+
subscribed_site_user_count: number;
|
|
33615
|
+
site_user_subscription_limit: number;
|
|
33616
|
+
}[];
|
|
33617
|
+
};
|
|
33618
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
33619
|
+
}>]>, "many">;
|
|
33620
|
+
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
33621
|
+
automatically_manage_new_devices: z.ZodBoolean;
|
|
33622
|
+
customer_key: z.ZodOptional<z.ZodString>;
|
|
33623
|
+
accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>, "many">;
|
|
33624
|
+
}, "strip", z.ZodTypeAny, {
|
|
33625
|
+
errors: ({
|
|
33626
|
+
message: string;
|
|
33627
|
+
created_at: string;
|
|
33628
|
+
error_code: "account_disconnected";
|
|
33629
|
+
is_connected_account_error?: boolean | undefined;
|
|
33630
|
+
is_bridge_error?: boolean | undefined;
|
|
33631
|
+
} | {
|
|
33632
|
+
message: string;
|
|
33633
|
+
created_at: string;
|
|
33634
|
+
error_code: "invalid_credentials";
|
|
33635
|
+
is_connected_account_error?: boolean | undefined;
|
|
33636
|
+
is_bridge_error?: boolean | undefined;
|
|
33637
|
+
} | {
|
|
33638
|
+
message: string;
|
|
33639
|
+
created_at: string;
|
|
33640
|
+
error_code: "bridge_disconnected";
|
|
33641
|
+
is_connected_account_error?: boolean | undefined;
|
|
33642
|
+
is_bridge_error?: boolean | undefined;
|
|
33643
|
+
} | {
|
|
33644
|
+
message: string;
|
|
33645
|
+
created_at: string;
|
|
33646
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
33647
|
+
salto_ks_metadata: {
|
|
33648
|
+
sites: {
|
|
33649
|
+
site_id: string;
|
|
33650
|
+
site_name: string;
|
|
33651
|
+
subscribed_site_user_count: number;
|
|
33652
|
+
site_user_subscription_limit: number;
|
|
33653
|
+
}[];
|
|
33654
|
+
};
|
|
33655
|
+
is_connected_account_error?: boolean | undefined;
|
|
33656
|
+
is_bridge_error?: boolean | undefined;
|
|
33657
|
+
})[];
|
|
33658
|
+
connected_account_id: string;
|
|
33659
|
+
account_type_display_name: string;
|
|
33660
|
+
warnings: ({
|
|
33661
|
+
message: string;
|
|
33662
|
+
created_at: string;
|
|
33663
|
+
warning_code: "scheduled_maintenance_window";
|
|
33664
|
+
} | {
|
|
33665
|
+
message: string;
|
|
33666
|
+
created_at: string;
|
|
33667
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
33668
|
+
} | {
|
|
33669
|
+
message: string;
|
|
33670
|
+
created_at: string;
|
|
33671
|
+
salto_ks_metadata: {
|
|
33672
|
+
sites: {
|
|
33673
|
+
site_id: string;
|
|
33674
|
+
site_name: string;
|
|
33675
|
+
subscribed_site_user_count: number;
|
|
33676
|
+
site_user_subscription_limit: number;
|
|
33677
|
+
}[];
|
|
33678
|
+
};
|
|
33679
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
33680
|
+
})[];
|
|
33681
|
+
custom_metadata: Record<string, string | boolean>;
|
|
33682
|
+
automatically_manage_new_devices: boolean;
|
|
33683
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
33684
|
+
created_at?: string | undefined;
|
|
33685
|
+
user_identifier?: {
|
|
33686
|
+
phone?: string | undefined;
|
|
33687
|
+
username?: string | undefined;
|
|
33688
|
+
api_url?: string | undefined;
|
|
33689
|
+
email?: string | undefined;
|
|
33690
|
+
exclusive?: boolean | undefined;
|
|
33691
|
+
} | undefined;
|
|
33692
|
+
account_type?: string | undefined;
|
|
33693
|
+
customer_key?: string | undefined;
|
|
33694
|
+
}, {
|
|
33695
|
+
errors: ({
|
|
33696
|
+
message: string;
|
|
33697
|
+
created_at: string;
|
|
33698
|
+
error_code: "account_disconnected";
|
|
33699
|
+
is_connected_account_error?: boolean | undefined;
|
|
33700
|
+
is_bridge_error?: boolean | undefined;
|
|
33701
|
+
} | {
|
|
33702
|
+
message: string;
|
|
33703
|
+
created_at: string;
|
|
33704
|
+
error_code: "invalid_credentials";
|
|
33705
|
+
is_connected_account_error?: boolean | undefined;
|
|
33706
|
+
is_bridge_error?: boolean | undefined;
|
|
33707
|
+
} | {
|
|
33708
|
+
message: string;
|
|
33709
|
+
created_at: string;
|
|
33710
|
+
error_code: "bridge_disconnected";
|
|
33711
|
+
is_connected_account_error?: boolean | undefined;
|
|
33712
|
+
is_bridge_error?: boolean | undefined;
|
|
33713
|
+
} | {
|
|
33714
|
+
message: string;
|
|
33715
|
+
created_at: string;
|
|
33716
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
33717
|
+
salto_ks_metadata: {
|
|
33718
|
+
sites: {
|
|
33719
|
+
site_id: string;
|
|
33720
|
+
site_name: string;
|
|
33721
|
+
subscribed_site_user_count: number;
|
|
33722
|
+
site_user_subscription_limit: number;
|
|
33723
|
+
}[];
|
|
33724
|
+
};
|
|
33725
|
+
is_connected_account_error?: boolean | undefined;
|
|
33726
|
+
is_bridge_error?: boolean | undefined;
|
|
33727
|
+
})[];
|
|
33728
|
+
connected_account_id: string;
|
|
33729
|
+
account_type_display_name: string;
|
|
33730
|
+
warnings: ({
|
|
33731
|
+
message: string;
|
|
33732
|
+
created_at: string;
|
|
33733
|
+
warning_code: "scheduled_maintenance_window";
|
|
33734
|
+
} | {
|
|
33735
|
+
message: string;
|
|
33736
|
+
created_at: string;
|
|
33737
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
33738
|
+
} | {
|
|
33739
|
+
message: string;
|
|
33740
|
+
created_at: string;
|
|
33741
|
+
salto_ks_metadata: {
|
|
33742
|
+
sites: {
|
|
33743
|
+
site_id: string;
|
|
33744
|
+
site_name: string;
|
|
33745
|
+
subscribed_site_user_count: number;
|
|
33746
|
+
site_user_subscription_limit: number;
|
|
33747
|
+
}[];
|
|
33748
|
+
};
|
|
33749
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
33750
|
+
})[];
|
|
33751
|
+
custom_metadata: Record<string, string | boolean>;
|
|
33752
|
+
automatically_manage_new_devices: boolean;
|
|
33753
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
33754
|
+
created_at?: string | undefined;
|
|
33755
|
+
user_identifier?: {
|
|
33756
|
+
phone?: string | undefined;
|
|
33757
|
+
username?: string | undefined;
|
|
33758
|
+
api_url?: string | undefined;
|
|
33759
|
+
email?: string | undefined;
|
|
33760
|
+
exclusive?: boolean | undefined;
|
|
33761
|
+
} | undefined;
|
|
33762
|
+
account_type?: string | undefined;
|
|
33763
|
+
customer_key?: string | undefined;
|
|
33764
|
+
}>, "many">>;
|
|
33765
|
+
connect_webviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33766
|
+
connect_webview_id: z.ZodString;
|
|
33767
|
+
workspace_id: z.ZodString;
|
|
33768
|
+
created_at: z.ZodString;
|
|
33769
|
+
connected_account_id: z.ZodNullable<z.ZodString>;
|
|
33770
|
+
url: z.ZodString;
|
|
33771
|
+
device_selection_mode: z.ZodEnum<["none", "single", "multiple"]>;
|
|
33772
|
+
accepted_providers: z.ZodArray<z.ZodString, "many">;
|
|
33773
|
+
accepted_capabilities: z.ZodArray<z.ZodEnum<["lock", "thermostat", "noise_sensor", "access_control"]>, "many">;
|
|
33774
|
+
accepted_devices: z.ZodArray<z.ZodString, "many">;
|
|
33775
|
+
any_device_allowed: z.ZodBoolean;
|
|
33776
|
+
any_provider_allowed: z.ZodBoolean;
|
|
33777
|
+
login_successful: z.ZodBoolean;
|
|
33778
|
+
status: z.ZodEnum<["pending", "failed", "authorized"]>;
|
|
33779
|
+
custom_redirect_url: z.ZodNullable<z.ZodString>;
|
|
33780
|
+
custom_redirect_failure_url: z.ZodNullable<z.ZodString>;
|
|
33781
|
+
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
33782
|
+
automatically_manage_new_devices: z.ZodBoolean;
|
|
33783
|
+
wait_for_device_creation: z.ZodBoolean;
|
|
33784
|
+
authorized_at: z.ZodNullable<z.ZodString>;
|
|
33785
|
+
selected_provider: z.ZodNullable<z.ZodString>;
|
|
33786
|
+
customer_key: z.ZodOptional<z.ZodString>;
|
|
33787
|
+
}, "strip", z.ZodTypeAny, {
|
|
33788
|
+
status: "pending" | "failed" | "authorized";
|
|
33789
|
+
workspace_id: string;
|
|
33790
|
+
created_at: string;
|
|
33791
|
+
connected_account_id: string | null;
|
|
33792
|
+
custom_metadata: Record<string, string | boolean>;
|
|
33793
|
+
automatically_manage_new_devices: boolean;
|
|
33794
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
33795
|
+
connect_webview_id: string;
|
|
33796
|
+
url: string;
|
|
33797
|
+
device_selection_mode: "none" | "single" | "multiple";
|
|
33798
|
+
accepted_providers: string[];
|
|
33799
|
+
accepted_devices: string[];
|
|
33800
|
+
any_device_allowed: boolean;
|
|
33801
|
+
any_provider_allowed: boolean;
|
|
33802
|
+
login_successful: boolean;
|
|
33803
|
+
custom_redirect_url: string | null;
|
|
33804
|
+
custom_redirect_failure_url: string | null;
|
|
33805
|
+
wait_for_device_creation: boolean;
|
|
33806
|
+
authorized_at: string | null;
|
|
33807
|
+
selected_provider: string | null;
|
|
33808
|
+
customer_key?: string | undefined;
|
|
33809
|
+
}, {
|
|
33810
|
+
status: "pending" | "failed" | "authorized";
|
|
33811
|
+
workspace_id: string;
|
|
33812
|
+
created_at: string;
|
|
33813
|
+
connected_account_id: string | null;
|
|
33814
|
+
custom_metadata: Record<string, string | boolean>;
|
|
33815
|
+
automatically_manage_new_devices: boolean;
|
|
33816
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
33817
|
+
connect_webview_id: string;
|
|
33818
|
+
url: string;
|
|
33819
|
+
device_selection_mode: "none" | "single" | "multiple";
|
|
33820
|
+
accepted_providers: string[];
|
|
33821
|
+
accepted_devices: string[];
|
|
33822
|
+
any_device_allowed: boolean;
|
|
33823
|
+
any_provider_allowed: boolean;
|
|
33824
|
+
login_successful: boolean;
|
|
33825
|
+
custom_redirect_url: string | null;
|
|
33826
|
+
custom_redirect_failure_url: string | null;
|
|
33827
|
+
wait_for_device_creation: boolean;
|
|
33828
|
+
authorized_at: string | null;
|
|
33829
|
+
selected_provider: string | null;
|
|
33830
|
+
customer_key?: string | undefined;
|
|
33831
|
+
}>, "many">>;
|
|
33832
|
+
access_methods: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33833
|
+
workspace_id: z.ZodString;
|
|
33834
|
+
access_method_id: z.ZodString;
|
|
33835
|
+
display_name: z.ZodString;
|
|
33836
|
+
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
33837
|
+
created_at: z.ZodString;
|
|
33838
|
+
issued_at: z.ZodNullable<z.ZodString>;
|
|
33839
|
+
is_issued: z.ZodBoolean;
|
|
33840
|
+
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
33841
|
+
client_session_token: z.ZodOptional<z.ZodString>;
|
|
33842
|
+
is_encoding_required: z.ZodOptional<z.ZodBoolean>;
|
|
33843
|
+
code: z.ZodOptional<z.ZodString>;
|
|
33844
|
+
}, "strip", z.ZodTypeAny, {
|
|
33845
|
+
display_name: string;
|
|
33846
|
+
workspace_id: string;
|
|
33847
|
+
created_at: string;
|
|
33848
|
+
mode: "code" | "card" | "mobile_key";
|
|
33849
|
+
access_method_id: string;
|
|
33850
|
+
issued_at: string | null;
|
|
33851
|
+
is_issued: boolean;
|
|
33852
|
+
code?: string | undefined;
|
|
33853
|
+
client_session_token?: string | undefined;
|
|
33854
|
+
instant_key_url?: string | undefined;
|
|
33855
|
+
is_encoding_required?: boolean | undefined;
|
|
33856
|
+
}, {
|
|
33857
|
+
display_name: string;
|
|
33858
|
+
workspace_id: string;
|
|
33859
|
+
created_at: string;
|
|
33860
|
+
mode: "code" | "card" | "mobile_key";
|
|
33861
|
+
access_method_id: string;
|
|
33862
|
+
issued_at: string | null;
|
|
33863
|
+
is_issued: boolean;
|
|
33864
|
+
code?: string | undefined;
|
|
33865
|
+
client_session_token?: string | undefined;
|
|
33866
|
+
instant_key_url?: string | undefined;
|
|
33867
|
+
is_encoding_required?: boolean | undefined;
|
|
33868
|
+
}>, "many">>;
|
|
33869
|
+
access_grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33870
|
+
workspace_id: z.ZodString;
|
|
33871
|
+
access_grant_id: z.ZodString;
|
|
33872
|
+
access_grant_key: z.ZodOptional<z.ZodString>;
|
|
33873
|
+
user_identity_id: z.ZodString;
|
|
33874
|
+
location_ids: z.ZodArray<z.ZodString, "many">;
|
|
33875
|
+
space_ids: z.ZodArray<z.ZodString, "many">;
|
|
33876
|
+
requested_access_methods: z.ZodArray<z.ZodObject<{
|
|
33877
|
+
display_name: z.ZodString;
|
|
33878
|
+
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
33879
|
+
created_at: z.ZodString;
|
|
33880
|
+
created_access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
33881
|
+
}, "strip", z.ZodTypeAny, {
|
|
33882
|
+
display_name: string;
|
|
33883
|
+
created_at: string;
|
|
33884
|
+
mode: "code" | "card" | "mobile_key";
|
|
33885
|
+
created_access_method_ids: string[];
|
|
33886
|
+
}, {
|
|
33887
|
+
display_name: string;
|
|
33888
|
+
created_at: string;
|
|
33889
|
+
mode: "code" | "card" | "mobile_key";
|
|
33890
|
+
created_access_method_ids: string[];
|
|
33891
|
+
}>, "many">;
|
|
33892
|
+
access_method_ids: z.ZodArray<z.ZodString, "many">;
|
|
33893
|
+
client_session_token: z.ZodOptional<z.ZodString>;
|
|
33894
|
+
name: z.ZodNullable<z.ZodString>;
|
|
33895
|
+
display_name: z.ZodString;
|
|
33896
|
+
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
33897
|
+
created_at: z.ZodString;
|
|
33898
|
+
starts_at: z.ZodString;
|
|
33899
|
+
ends_at: z.ZodNullable<z.ZodString>;
|
|
33900
|
+
}, "strip", z.ZodTypeAny, {
|
|
33901
|
+
name: string | null;
|
|
33902
|
+
display_name: string;
|
|
33903
|
+
workspace_id: string;
|
|
33904
|
+
created_at: string;
|
|
33905
|
+
starts_at: string;
|
|
33906
|
+
ends_at: string | null;
|
|
33907
|
+
access_grant_id: string;
|
|
33908
|
+
user_identity_id: string;
|
|
33909
|
+
location_ids: string[];
|
|
33910
|
+
space_ids: string[];
|
|
33911
|
+
requested_access_methods: {
|
|
33912
|
+
display_name: string;
|
|
33913
|
+
created_at: string;
|
|
33914
|
+
mode: "code" | "card" | "mobile_key";
|
|
33915
|
+
created_access_method_ids: string[];
|
|
33916
|
+
}[];
|
|
33917
|
+
access_method_ids: string[];
|
|
33918
|
+
access_grant_key?: string | undefined;
|
|
33919
|
+
client_session_token?: string | undefined;
|
|
33920
|
+
instant_key_url?: string | undefined;
|
|
33921
|
+
}, {
|
|
33922
|
+
name: string | null;
|
|
33923
|
+
display_name: string;
|
|
33924
|
+
workspace_id: string;
|
|
33925
|
+
created_at: string;
|
|
33926
|
+
starts_at: string;
|
|
33927
|
+
ends_at: string | null;
|
|
33928
|
+
access_grant_id: string;
|
|
33929
|
+
user_identity_id: string;
|
|
33930
|
+
location_ids: string[];
|
|
33931
|
+
space_ids: string[];
|
|
33932
|
+
requested_access_methods: {
|
|
33933
|
+
display_name: string;
|
|
33934
|
+
created_at: string;
|
|
33935
|
+
mode: "code" | "card" | "mobile_key";
|
|
33936
|
+
created_access_method_ids: string[];
|
|
33937
|
+
}[];
|
|
33938
|
+
access_method_ids: string[];
|
|
33939
|
+
access_grant_key?: string | undefined;
|
|
33940
|
+
client_session_token?: string | undefined;
|
|
33941
|
+
instant_key_url?: string | undefined;
|
|
33942
|
+
}>, "many">>;
|
|
33943
|
+
}, "strip", z.ZodTypeAny, {
|
|
33944
|
+
batch_type: "workspaces";
|
|
33945
|
+
spaces?: {
|
|
33946
|
+
name: string;
|
|
33947
|
+
display_name: string;
|
|
33948
|
+
workspace_id: string;
|
|
33949
|
+
created_at: string;
|
|
33950
|
+
device_count: number;
|
|
33951
|
+
space_id: string;
|
|
33952
|
+
acs_entrance_count: number;
|
|
33953
|
+
space_key?: string | undefined;
|
|
33954
|
+
}[] | undefined;
|
|
33955
|
+
devices?: {
|
|
33956
|
+
display_name: string;
|
|
33957
|
+
device_id: string;
|
|
33958
|
+
workspace_id: string;
|
|
33959
|
+
created_at: string;
|
|
33960
|
+
errors: ({
|
|
33961
|
+
message: string;
|
|
33962
|
+
created_at: string;
|
|
33963
|
+
error_code: "account_disconnected";
|
|
33964
|
+
is_connected_account_error?: boolean | undefined;
|
|
33965
|
+
is_bridge_error?: boolean | undefined;
|
|
33966
|
+
} | {
|
|
33967
|
+
message: string;
|
|
33968
|
+
created_at: string;
|
|
33969
|
+
error_code: "invalid_credentials";
|
|
33970
|
+
is_connected_account_error?: boolean | undefined;
|
|
33971
|
+
is_bridge_error?: boolean | undefined;
|
|
33972
|
+
} | {
|
|
33973
|
+
message: string;
|
|
33974
|
+
created_at: string;
|
|
33975
|
+
error_code: "bridge_disconnected";
|
|
33976
|
+
is_connected_account_error?: boolean | undefined;
|
|
33977
|
+
is_bridge_error?: boolean | undefined;
|
|
33978
|
+
} | {
|
|
33979
|
+
message: string;
|
|
33980
|
+
created_at: string;
|
|
33981
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
33982
|
+
salto_ks_metadata: {
|
|
33983
|
+
sites: {
|
|
33984
|
+
site_id: string;
|
|
33603
33985
|
site_name: string;
|
|
33604
33986
|
subscribed_site_user_count: number;
|
|
33605
33987
|
site_user_subscription_limit: number;
|
|
@@ -34286,6 +34668,77 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
34286
34668
|
access_point_name: string;
|
|
34287
34669
|
} | undefined;
|
|
34288
34670
|
}[] | undefined;
|
|
34671
|
+
connected_accounts?: {
|
|
34672
|
+
errors: ({
|
|
34673
|
+
message: string;
|
|
34674
|
+
created_at: string;
|
|
34675
|
+
error_code: "account_disconnected";
|
|
34676
|
+
is_connected_account_error?: boolean | undefined;
|
|
34677
|
+
is_bridge_error?: boolean | undefined;
|
|
34678
|
+
} | {
|
|
34679
|
+
message: string;
|
|
34680
|
+
created_at: string;
|
|
34681
|
+
error_code: "invalid_credentials";
|
|
34682
|
+
is_connected_account_error?: boolean | undefined;
|
|
34683
|
+
is_bridge_error?: boolean | undefined;
|
|
34684
|
+
} | {
|
|
34685
|
+
message: string;
|
|
34686
|
+
created_at: string;
|
|
34687
|
+
error_code: "bridge_disconnected";
|
|
34688
|
+
is_connected_account_error?: boolean | undefined;
|
|
34689
|
+
is_bridge_error?: boolean | undefined;
|
|
34690
|
+
} | {
|
|
34691
|
+
message: string;
|
|
34692
|
+
created_at: string;
|
|
34693
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
34694
|
+
salto_ks_metadata: {
|
|
34695
|
+
sites: {
|
|
34696
|
+
site_id: string;
|
|
34697
|
+
site_name: string;
|
|
34698
|
+
subscribed_site_user_count: number;
|
|
34699
|
+
site_user_subscription_limit: number;
|
|
34700
|
+
}[];
|
|
34701
|
+
};
|
|
34702
|
+
is_connected_account_error?: boolean | undefined;
|
|
34703
|
+
is_bridge_error?: boolean | undefined;
|
|
34704
|
+
})[];
|
|
34705
|
+
connected_account_id: string;
|
|
34706
|
+
account_type_display_name: string;
|
|
34707
|
+
warnings: ({
|
|
34708
|
+
message: string;
|
|
34709
|
+
created_at: string;
|
|
34710
|
+
warning_code: "scheduled_maintenance_window";
|
|
34711
|
+
} | {
|
|
34712
|
+
message: string;
|
|
34713
|
+
created_at: string;
|
|
34714
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
34715
|
+
} | {
|
|
34716
|
+
message: string;
|
|
34717
|
+
created_at: string;
|
|
34718
|
+
salto_ks_metadata: {
|
|
34719
|
+
sites: {
|
|
34720
|
+
site_id: string;
|
|
34721
|
+
site_name: string;
|
|
34722
|
+
subscribed_site_user_count: number;
|
|
34723
|
+
site_user_subscription_limit: number;
|
|
34724
|
+
}[];
|
|
34725
|
+
};
|
|
34726
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
34727
|
+
})[];
|
|
34728
|
+
custom_metadata: Record<string, string | boolean>;
|
|
34729
|
+
automatically_manage_new_devices: boolean;
|
|
34730
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
34731
|
+
created_at?: string | undefined;
|
|
34732
|
+
user_identifier?: {
|
|
34733
|
+
phone?: string | undefined;
|
|
34734
|
+
username?: string | undefined;
|
|
34735
|
+
api_url?: string | undefined;
|
|
34736
|
+
email?: string | undefined;
|
|
34737
|
+
exclusive?: boolean | undefined;
|
|
34738
|
+
} | undefined;
|
|
34739
|
+
account_type?: string | undefined;
|
|
34740
|
+
customer_key?: string | undefined;
|
|
34741
|
+
}[] | undefined;
|
|
34289
34742
|
acs_systems?: {
|
|
34290
34743
|
name: string;
|
|
34291
34744
|
workspace_id: string;
|
|
@@ -36440,6 +36893,77 @@ export declare const workspaces_batch: z.ZodObject<{
|
|
|
36440
36893
|
access_point_name: string;
|
|
36441
36894
|
} | undefined;
|
|
36442
36895
|
}[] | undefined;
|
|
36896
|
+
connected_accounts?: {
|
|
36897
|
+
errors: ({
|
|
36898
|
+
message: string;
|
|
36899
|
+
created_at: string;
|
|
36900
|
+
error_code: "account_disconnected";
|
|
36901
|
+
is_connected_account_error?: boolean | undefined;
|
|
36902
|
+
is_bridge_error?: boolean | undefined;
|
|
36903
|
+
} | {
|
|
36904
|
+
message: string;
|
|
36905
|
+
created_at: string;
|
|
36906
|
+
error_code: "invalid_credentials";
|
|
36907
|
+
is_connected_account_error?: boolean | undefined;
|
|
36908
|
+
is_bridge_error?: boolean | undefined;
|
|
36909
|
+
} | {
|
|
36910
|
+
message: string;
|
|
36911
|
+
created_at: string;
|
|
36912
|
+
error_code: "bridge_disconnected";
|
|
36913
|
+
is_connected_account_error?: boolean | undefined;
|
|
36914
|
+
is_bridge_error?: boolean | undefined;
|
|
36915
|
+
} | {
|
|
36916
|
+
message: string;
|
|
36917
|
+
created_at: string;
|
|
36918
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
36919
|
+
salto_ks_metadata: {
|
|
36920
|
+
sites: {
|
|
36921
|
+
site_id: string;
|
|
36922
|
+
site_name: string;
|
|
36923
|
+
subscribed_site_user_count: number;
|
|
36924
|
+
site_user_subscription_limit: number;
|
|
36925
|
+
}[];
|
|
36926
|
+
};
|
|
36927
|
+
is_connected_account_error?: boolean | undefined;
|
|
36928
|
+
is_bridge_error?: boolean | undefined;
|
|
36929
|
+
})[];
|
|
36930
|
+
connected_account_id: string;
|
|
36931
|
+
account_type_display_name: string;
|
|
36932
|
+
warnings: ({
|
|
36933
|
+
message: string;
|
|
36934
|
+
created_at: string;
|
|
36935
|
+
warning_code: "scheduled_maintenance_window";
|
|
36936
|
+
} | {
|
|
36937
|
+
message: string;
|
|
36938
|
+
created_at: string;
|
|
36939
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
36940
|
+
} | {
|
|
36941
|
+
message: string;
|
|
36942
|
+
created_at: string;
|
|
36943
|
+
salto_ks_metadata: {
|
|
36944
|
+
sites: {
|
|
36945
|
+
site_id: string;
|
|
36946
|
+
site_name: string;
|
|
36947
|
+
subscribed_site_user_count: number;
|
|
36948
|
+
site_user_subscription_limit: number;
|
|
36949
|
+
}[];
|
|
36950
|
+
};
|
|
36951
|
+
warning_code: "salto_ks_subscription_limit_almost_reached";
|
|
36952
|
+
})[];
|
|
36953
|
+
custom_metadata: Record<string, string | boolean>;
|
|
36954
|
+
automatically_manage_new_devices: boolean;
|
|
36955
|
+
accepted_capabilities: ("lock" | "thermostat" | "noise_sensor" | "access_control")[];
|
|
36956
|
+
created_at?: string | undefined;
|
|
36957
|
+
user_identifier?: {
|
|
36958
|
+
phone?: string | undefined;
|
|
36959
|
+
username?: string | undefined;
|
|
36960
|
+
api_url?: string | undefined;
|
|
36961
|
+
email?: string | undefined;
|
|
36962
|
+
exclusive?: boolean | undefined;
|
|
36963
|
+
} | undefined;
|
|
36964
|
+
account_type?: string | undefined;
|
|
36965
|
+
customer_key?: string | undefined;
|
|
36966
|
+
}[] | undefined;
|
|
36443
36967
|
acs_systems?: {
|
|
36444
36968
|
name: string;
|
|
36445
36969
|
workspace_id: string;
|